Exception Methods

Mostly exceptions just serve as signals. They tend not to have a lot of methods of their own, and those they have are rarely invoked directly. The two most commonly used are toString() and printStackTrace().

 public String getMessage()
 public String getLocalizedMessage()
 public String toString()
 public void printStackTrace()
 public void printStackTrace(PrintStream s)
 public void printStackTrace(PrintWriter s)
 public native Throwable fillInStackTrace()
Both of these are inherited from java.lang.Throwable as are pretty much all other methods in most exception classes.


Previous | Next | Top
Last Modified June 17, 1999
Copyright 1999 Elliotte Rusty Harold
elharo@metalab.unc.edu