| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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)public final void addSuppressed(Throwable t)
t - public Throwable fillInStackTrace()
public Throwable getCause()
public String getLocalizedMessage()
getMessage().public String getMessage()
public Throwable initCause(Throwable cause)
cause - The cause (can be null)public void printStackTrace()
public void printStackTrace(PrintStream s)
s - The print stream on which to output the trace.