Class FatalExitExceptionHandler

  • All Implemented Interfaces:
    Thread.UncaughtExceptionHandler

    public final class FatalExitExceptionHandler
    extends Object
    implements Thread.UncaughtExceptionHandler
    Handler for uncaught exceptions that will log the exception and kill the process afterwards.

    This guarantees that critical exceptions are not accidentally lost and leave the system running in an inconsistent state.