Skip to content

Most visited

Recently visited

navigation
Added in API level 1

Thread.UncaughtExceptionHandler

public static interface Thread.UncaughtExceptionHandler

java.lang.Thread.UncaughtExceptionHandler
Known Indirect Subclasses


Implemented by objects that want to handle cases where a thread is being terminated by an uncaught exception. Upon such termination, the handler is notified of the terminating thread and causal exception. If there is no explicit handler set then the thread's group is the default handler.

Summary

Public methods

abstract void uncaughtException(Thread thread, Throwable ex)

The thread is being terminated by an uncaught exception.

Public methods

uncaughtException

Added in API level 1
void uncaughtException (Thread thread, 
                Throwable ex)

The thread is being terminated by an uncaught exception. Further exceptions thrown in this method are prevent the remainder of the method from executing, but are otherwise ignored.

Parameters
thread Thread: the thread that has an uncaught exception
ex Throwable: the exception that was thrown
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.