Constructor and Description |
---|
Throwable() |
Throwable(String message) |
Throwable(String message,
Throwable cause) |
Throwable(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
Throwable |
fillInStackTrace() |
Throwable |
getCause()
Get the cause for this Throwable.
|
String |
getLocalizedMessage() |
String |
getMessage() |
StackTraceElement[] |
getStackTrace() |
Throwable |
initCause(Throwable t)
Initialize the cause of this Throwable to be the specified Throwable.
|
void |
printStackTrace() |
void |
printStackTrace(PrintStream ps) |
void |
printStackTrace(PrintWriter pw) |
void |
setStackTrace(StackTraceElement[] elements) |
String |
toString()
Return a String representation of this object.
|
public Throwable(String message)
public Throwable()
public Throwable(Throwable cause)
public String getMessage()
public String toString()
Object
public void setStackTrace(StackTraceElement[] elements)
public StackTraceElement[] getStackTrace()
public void printStackTrace(PrintStream ps)
public void printStackTrace(PrintWriter pw)
public void printStackTrace()
public Throwable fillInStackTrace()
public Throwable getCause()
public Throwable initCause(Throwable t) throws IllegalStateException, IllegalArgumentException
t
- The cause for this Throwable.IllegalStateException
- if cause was already set.IllegalArgumentException
- if the parameter is this Throwable.public String getLocalizedMessage()