Module java.base
Package java.lang

Interface Thread.UncaughtExceptionHandler

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.

@FunctionalInterface public static interface Thread.UncaughtExceptionHandler
A handler which is invoked when an uncaught exception occurs in a Thread.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    uncaughtException(Thread thread, Throwable throwable)
    The method invoked when an uncaught exception occurs in a Thread.
  • Method Details

    • uncaughtException

      void uncaughtException(Thread thread, Throwable throwable)
      The method invoked when an uncaught exception occurs in a Thread.
      Parameters:
      thread - the Thread where the uncaught exception occurred
      throwable - the uncaught exception