Package org.apache.flink.util
Class FatalExitExceptionHandler
- java.lang.Object
-
- org.apache.flink.util.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.
-
-
Field Summary
Fields Modifier and Type Field Description static int
EXIT_CODE
static FatalExitExceptionHandler
INSTANCE
-
Constructor Summary
Constructors Constructor Description FatalExitExceptionHandler()
-
-
-
Field Detail
-
INSTANCE
public static final FatalExitExceptionHandler INSTANCE
-
EXIT_CODE
public static final int EXIT_CODE
- See Also:
- Constant Field Values
-
-
Method Detail
-
uncaughtException
public void uncaughtException(Thread t, Throwable e)
- Specified by:
uncaughtException
in interfaceThread.UncaughtExceptionHandler
-
-