Packages  This Package  Prev  Next  Index  

§1.30 Class Exception

public  class  java.lang.Exception
    extends  java.lang.Throwable  (I-§1.21)
{
        // Constructors
    public Exception();	§1.30.1
    public Exception(String  s);	§1.30.2
}
The class Exception and its subclasses are a form of Throwable that indicates conditions that a reasonable application might want to catch.

See Also:
Error (I-§1.48).

Constructors

Exception

public Exception()
Constructs an Exception with no specified detail message.

Exception

public Exception(String s)
Constructs a Exception with the specified detail message.
Parameters:
s - the detail message

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to doug.kramer@sun.com