Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
public static interface

Thread.UncaughtExceptionHandler

java.lang.Thread.UncaughtExceptionHandler
Known Indirect Subclasses

Class Overview

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

public abstract void uncaughtException ( Thread thread, Throwable ex)

Added in API level 1

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 the thread that has an uncaught exception
ex the exception that was thrown