- All Known Implementing Classes:
ThreadGroup
- Enclosing class:
- Thread
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A handler which is invoked when an uncaught exception occurs in a Thread.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
uncaughtException
(Thread thread, Throwable throwable) The method invoked when an uncaught exception occurs in a Thread.
-
Method Details
-
uncaughtException
The method invoked when an uncaught exception occurs in a Thread.- Parameters:
thread
- the Thread where the uncaught exception occurredthrowable
- the uncaught exception
-