|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbb.util.UncaughtThrowableLogger
public class UncaughtThrowableLogger
Logs all otherwise uncaught Throwables to a Logger.
This class is multithread safe: the types of its state are individually multithread safe, and are used such that only their individual multithread safety matters.
Nested Class Summary | |
---|---|
static class |
UncaughtThrowableLogger.UnitTest
See the Overview page of the project's javadocs for a general description of this unit test class. |
Field Summary | |
---|---|
private Logger |
logger
Logger where all Throwables will get logged to. |
Constructor Summary | |
---|---|
UncaughtThrowableLogger()
Convenience constructor that simply calls . |
|
UncaughtThrowableLogger(Logger logger)
Fundamental constructor. |
Method Summary | |
---|---|
void |
uncaughtException(Thread thread,
Throwable throwable)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Logger logger
Contract: this field is never null.
Constructor Detail |
---|
public UncaughtThrowableLogger()
this
( LogUtil.getLogger2()
)
.
public UncaughtThrowableLogger(Logger logger) throws IllegalArgumentException
IllegalArgumentException
- if logger == nullMethod Detail |
---|
public void uncaughtException(Thread thread, Throwable throwable)
uncaughtException
in interface Thread.UncaughtExceptionHandler
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |