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.