Module java.base
Package java.lang

Interface Thread.UncaughtExceptionHandler

    • Method Summary

      Modifier and Type Method Description
      void uncaughtException​(Thread t, Throwable e)
      Method invoked when the given thread terminates due to the given uncaught exception.
    • Method Detail

      • uncaughtException

        void uncaughtException​(Thread t,
                               Throwable e)
        Method invoked when the given thread terminates due to the given uncaught exception.

        Any exception thrown by this method will be ignored by the Java Virtual Machine.

        Parameters:
        t - the thread
        e - the exception