java.lang
Class Throwable
java.lang.Object
java.lang.Throwable
- Direct Known Subclasses:
- Error, Exception
- public class Throwable
- extends Object
Throwable
public Throwable(String message)
Throwable
public Throwable()
Throwable
public Throwable(Throwable cause)
Throwable
public Throwable(String message,
Throwable cause)
getMessage
public final String getMessage()
toString
public String toString()
- Description copied from class:
Object
- Return a String representation of this object.
- Overrides:
toString in class Object
- Returns:
- a String representing this object.
printStackTrace
public void printStackTrace()
fillInStackTrace
public Throwable fillInStackTrace()
getCause
public Throwable getCause()
- Get the cause for this Throwable.
- Returns:
- the cause for this Throwable.
initCause
public Throwable initCause(Throwable t)
throws IllegalStateException,
IllegalArgumentException
- Initialize the cause of this Throwable to be the specified Throwable.
- Parameters:
t - The cause for this Throwable.
- Returns:
- this Throwable.
- Throws:
IllegalStateException - if cause was already set.
IllegalArgumentException - if the parameter is this Throwable.