Class LoggingUncaughtExceptionHandler

    • Constructor Detail

      • LoggingUncaughtExceptionHandler

        public LoggingUncaughtExceptionHandler​(Logger log)
        Create a new instance.
        Parameters:
        log - the logger to log the uncaught exception to
    • Method Detail

      • uncaughtException

        public 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.

        Specified by:
        uncaughtException in interface Thread.UncaughtExceptionHandler
        Parameters:
        t - the thread
        e - the exception