|
|||||||||
| 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. |
|
Throwable(String message,
Throwable cause)
Create a Throwable object. |
|
Throwable(Throwable cause)
Create a Throwable object. |
|
| Method Summary | |
|---|---|
void |
addSuppressed(Throwable t)
Currently unimplemented. |
Throwable |
fillInStackTrace()
Capture a stack trace. |
Throwable |
getCause()
Returns the cause of this throwable or null if the cause is nonexistent or unknown. |
String |
getLocalizedMessage()
Can be overridden, to return localized messages. |
String |
getMessage()
Return the message associated with this Throwable object. |
Throwable |
initCause(Throwable cause)
Initializes the cause of this throwable to the specified value. |
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.
public Throwable(String message,
Throwable cause)
message - Message providing details of the error/exception.cause - the cause (can be null)public Throwable(Throwable cause)
cause - the cause (can be null)| Method Detail |
|---|
public Throwable initCause(Throwable cause)
cause - The cause (can be null)
public Throwable getCause()
public final void addSuppressed(Throwable t)
t - public String getLocalizedMessage()
getMessage().
public String getMessage()
public String toString()
toString in class Objectpublic 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 | ||||||||