Uses of Interface java.lang.Thread.UncaughtExceptionHandler (Java Platform SE 8 )
Date: 2020-03-26

## Uses of Interface
java.lang.Thread.UncaughtExceptionHandler

- Packages that use Thread.UncaughtExceptionHandler
  Package | Description
  --- | ---
  java.lang | Provides classes that are fundamental to the design of the Java programming language.
  java.util.concurrent | Utility classes commonly useful in concurrent programming.

- - ### Uses of Thread.UncaughtExceptionHandler in java.lang

    Classes in java.lang that implement Thread.UncaughtExceptionHandler
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ThreadGroup` A thread group represents a set of threads.

    Methods in java.lang that return Thread.UncaughtExceptionHandler
    Modifier and Type | Method and Description
    --- | ---
    `static Thread.UncaughtExceptionHandler` | Thread.`getDefaultUncaughtExceptionHandler()` Returns the default handler invoked when a thread abruptly terminates due to an uncaught exception.
    `Thread.UncaughtExceptionHandler` | Thread.`getUncaughtExceptionHandler()` Returns the handler invoked when this thread abruptly terminates due to an uncaught exception.

    Methods in java.lang with parameters of type Thread.UncaughtExceptionHandler
    Modifier and Type | Method and Description
    --- | ---
    `static void` | Thread.`setDefaultUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh)` Set the default handler invoked when a thread abruptly terminates due to an uncaught exception, and no other handler has been defined for that thread.
    `void` | Thread.`setUncaughtExceptionHandler(Thread.UncaughtExceptionHandler eh)` Set the handler invoked when this thread abruptly terminates due to an uncaught exception.

  - ### Uses of Thread.UncaughtExceptionHandler in java.util.concurrent

    Methods in java.util.concurrent that return Thread.UncaughtExceptionHandler
    Modifier and Type | Method and Description
    --- | ---
    `Thread.UncaughtExceptionHandler` | ForkJoinPool.`getUncaughtExceptionHandler()` Returns the handler for internal worker threads that terminate due to unrecoverable errors encountered while executing tasks.

    Constructors in java.util.concurrent with parameters of type Thread.UncaughtExceptionHandler
    Constructor and Description
    `ForkJoinPool(int parallelism, ForkJoinPool.ForkJoinWorkerThreadFactory factory, Thread.UncaughtExceptionHandler handler, boolean asyncMode)` Creates a `ForkJoinPool` with the given parameters.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2020, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.