|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
public class Throwable
All exceptions and errors extend this class.
Constructor Summary | |
---|---|
Throwable()
Create a Throwable object. |
|
Throwable(String message)
Create a Throwable object. |
Method Summary | |
---|---|
Throwable |
fillInStackTrace()
Capture a stack trace. |
String |
getLocalizedMessage()
Can be overridden, to return localized messages. |
String |
getMessage()
Return the message associated with this Throwable object. |
void |
printStackTrace()
Print details of the exception/error on the system error stream. |
void |
printStackTrace(PrintStream s)
Print details of the exception/error to the provided stream. |
String |
toString()
Return a string version of the Throwable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Throwable()
public Throwable(String message)
message
- Message providing details of the error/exception.Method Detail |
---|
public String getLocalizedMessage()
getMessage()
.
public String getMessage()
public String toString()
toString
in class Object
public Throwable fillInStackTrace()
public void printStackTrace(PrintStream s)
s
- The print stream on which to output the trace.public void printStackTrace()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |