Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## java.lang
Class Throwable

    java.lang.Object
      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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD