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 class Throwable extends Object implements Serializable { // Public Constructors public Throwable(); public Throwable(String message); // Public Instance Methods public native Throwable fillInStackTrace(); 1.1public String getLocalizedMessage(); public String getMessage(); public void printStackTrace(); public void printStackTrace(PrintStream s); 1.1public void printStackTrace(PrintWriter s); public String toString(); // Overrides Object }
Error, Exception
ExceptionInInitializerError(), InvocationTargetException(), Thread.stop(), ThreadGroup.uncaughtException()
ExceptionInInitializerError.getException(), InvocationTargetException.getTargetException(), Throwable.fillInStackTrace()
Object.finalize()
This HTML Help has been published using the chm2web software. |