Package | Description |
---|---|
java.lang |
Core Java classes
|
Modifier and Type | Method and Description |
---|---|
static Thread.UncaughtExceptionHandler |
Thread.getDefaultUncaughtExceptionHandler()
returns the current default exception handler if set, or null if none is set.
|
Thread.UncaughtExceptionHandler |
Thread.getUncaughtExceptionHandler()
returns the current uncaught exception handler for this thread, if one has
has been set or null if none is set.
|
Modifier and Type | Method and Description |
---|---|
static void |
Thread.setDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler handler)
Set the default exception handler.
|
void |
Thread.setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler handler)
Sets the uncaught exception handler for this thread.
|