home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


Java in a Nutshell

Previous Chapter 25
The java.lang Package
Next
 

25.19 java.lang.Exception (JDK 1.0)

This class forms the root of the exception hierarchy in Java. An Exception signals an abnormal condition that must be specially handled to prevent program termination. Exceptions may be caught and handled. Exceptions that are not subclasses of RuntimeException must be declared in the throws clause of any method that can throw them.

getMessage() returns a message associated with the exception. See Throwable for other methods.

public class Exception extends Throwable {
    // Public Constructors
            public Exception();
            public Exception(String s);
}

Hierarchy:

Object->Throwable(Serializable)->Exception

Extended By:

AWTException, ClassNotFoundException, CloneNotSupportedException, DataFormatException, IllegalAccessException, InstantiationException, InterruptedException, IntrospectionException, InvocationTargetException, IOException, NoSuchFieldException, NoSuchMethodException, ParseException, PropertyVetoException, RuntimeException, TooManyListenersException, UnsupportedFlavorException

Passed To:

WriteAbortedException()

Type Of:

WriteAbortedException.detail


Previous Home Next
java.lang.Error (JDK 1.0) Book Index java.lang.ExceptionInInitializerError (JDK 1.1)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java