java.lang
Class Throwable

java.lang.Object
  extended byjava.lang.Throwable
Direct Known Subclasses:
Error, Exception

public class Throwable
extends Object


Constructor Summary
Throwable()
           
Throwable(String message)
           
Throwable(String message, Throwable cause)
           
Throwable(Throwable cause)
           
 
Method Summary
 Throwable fillInStackTrace()
           
 Throwable getCause()
          Get the cause for this Throwable.
 String getMessage()
           
 Throwable initCause(Throwable t)
          Initialize the cause of this Throwable to be the specified Throwable.
 void printStackTrace()
           
 String toString()
          Return a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode
 

Constructor Detail

Throwable

public Throwable(String message)

Throwable

public Throwable()

Throwable

public Throwable(Throwable cause)

Throwable

public Throwable(String message,
                 Throwable cause)
Method Detail

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.