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 Throwable fillInStackTrace()

All of these are inherited from java.lang.Throwable as are pretty much all other methods in most exception classes.


Previous | Next | Top | Cafe au Lait

Copyright 1999, 2002 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified May 9, 2002