javadoc.com.google.common.util.concurrent.UncaughtExceptionHandlers.html Maven / Gradle / Ivy
The newest version!
UncaughtExceptionHandlers (Guava: Google Core Libraries for Java 11.0.1 API)
Overview
Package
Class
Use
Tree
Deprecated
Index
Help
PREV CLASS
NEXT CLASS
FRAMES
NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD
DETAIL: FIELD | CONSTR | METHOD
com.google.common.util.concurrent
Class UncaughtExceptionHandlers
java.lang.Object
com.google.common.util.concurrent.UncaughtExceptionHandlers
public final class UncaughtExceptionHandlers
- extends Object
Factories for Thread.UncaughtExceptionHandler
instances.
- Since:
- 8.0
- Author:
- Gregory Kick
Method Summary | |
---|---|
static Thread.UncaughtExceptionHandler |
systemExit()
Returns an exception handler that exits the system. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
systemExit
public static Thread.UncaughtExceptionHandler systemExit()
- Returns an exception handler that exits the system. This is particularly useful for the main
thread, which may start up other, non-daemon threads, but fail to fully initialize the
application successfully.
Example usage:
public static void main(String[] args) { Thread.currentThread().setUncaughtExceptionHandler(UncaughtExceptionHandlers.systemExit()); ...
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010-2012. All Rights Reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy