com.google.common.util.concurrent
public final class UncaughtExceptionHandlers extends java.lang.Object
Thread.UncaughtExceptionHandler
instances.Modifier and Type | Method and Description |
---|---|
static java.lang.Thread.UncaughtExceptionHandler |
systemExit()
Returns an exception handler that exits the system.
|
public static java.lang.Thread.UncaughtExceptionHandler systemExit()
Example usage:
public static void main(String[] args) { Thread.currentThread().setUncaughtExceptionHandler(UncaughtExceptionHandlers.systemExit()); ...