public class Throwable extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
|
Throwable() |
|
Throwable(String message) |
|
Throwable(String message,
Throwable cause) |
protected |
Throwable(String message,
Throwable cause,
boolean enableSuppression,
boolean writetableStackTrace)
Constructor that allows subclasses disabling exception suppression and stack traces.
|
|
Throwable(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
void |
addSuppressed(Throwable exception)
Call to add an exception that was suppressed.
|
Throwable |
fillInStackTrace()
Populates the stack trace information for the Throwable.
|
Throwable |
getCause() |
String |
getLocalizedMessage() |
String |
getMessage() |
StackTraceElement[] |
getStackTrace()
Returns the stack trace for the Throwable if it is available.
|
Throwable[] |
getSuppressed()
Returns the array of Exception that this one suppressedExceptions.
|
Throwable |
initCause(Throwable cause) |
void |
printStackTrace() |
void |
printStackTrace(PrintStream out) |
void |
setStackTrace(StackTraceElement[] stackTrace) |
String |
toString() |
public Throwable()
public Throwable(String message)
public Throwable(Throwable cause)
public final void addSuppressed(Throwable exception)
public Throwable fillInStackTrace()
public Throwable getCause()
public String getLocalizedMessage()
public String getMessage()
public StackTraceElement[] getStackTrace()
Availability of stack traces in script mode depends on module properties and browser. See: https://code.google.com/p/google-web-toolkit/wiki/WebModeExceptions#Emulated_Stack_Data
public final Throwable[] getSuppressed()
public void printStackTrace()
public void printStackTrace(PrintStream out)
public void setStackTrace(StackTraceElement[] stackTrace)
Copyright © 2018. All rights reserved.