java.lang
Class Throwable

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

public class Throwable
extends Object

Base class for exceptions and errors.


Constructor Summary
Throwable()
          constructor: initialize a throwable without detailed message
Throwable(String message)
          constructor: initialize a throwable with detailed message
 
Method Summary
 String getMessage()
          get detailed message of current throwable
 void printStackTrace()
          dumps the stacktrace of current throwable onto display
 
Methods inherited from class java.lang.Object
clone, equals, getClass, notifyAll, toString, wait
 

Constructor Detail

Throwable

public Throwable()
constructor: initialize a throwable without detailed message


Throwable

public Throwable(String message)
constructor: initialize a throwable with detailed message

Method Detail

getMessage

public String getMessage()
get detailed message of current throwable

Returns:
detailed message or null if not exist

printStackTrace

public void printStackTrace()
dumps the stacktrace of current throwable onto display