java.lang.Throwable (JDK 1.0)
This is the root class of the Java exception and error hierarchy. All exceptions and errors are subclasses of Throwable. The getMessage() method retrieves any error message associated with the exception or error. printStackTrace() prints a stack trace that shows where the exception occurred. fillInStackTrace() extends the stack trace when the exception is partially handled, and then re-thrown.
public classThrowableextends Object implements Serializable { //Public ConstructorspublicThrowable(); publicThrowable(Stringmessage); //Public Instance Methodspublic native ThrowablefillInStackTrace(); 1.1public StringgetLocalizedMessage(); public StringgetMessage(); public voidprintStackTrace(); public voidprintStackTrace(PrintStreams); 1.1public voidprintStackTrace(PrintWriters); public StringtoString(); //Overrides Object}
Extended By:
Error, Exception
Passed To:
ExceptionInInitializerError(), InvocationTargetException(), Thread.stop(), ThreadGroup.uncaughtException()
Returned By:
ExceptionInInitializerError.getException(), InvocationTargetException.getTargetException(), Throwable.fillInStackTrace()
Thrown By:
Object.finalize()