|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.common.ExceptionMonitor
public abstract class ExceptionMonitor
Monitors uncaught exceptions. exceptionCaught(Throwable) is
invoked when there are any uncaught exceptions.
You can monitor any uncaught exceptions by setting ExceptionMonitor
by calling setInstance(ExceptionMonitor). The default
monitor logs all caught exceptions in WARN level using
SLF4J.
DefaultExceptionMonitor| Constructor Summary | |
|---|---|
ExceptionMonitor()
|
|
| Method Summary | |
|---|---|
abstract void |
exceptionCaught(Throwable cause)
Invoked when there are any uncaught exceptions. |
static ExceptionMonitor |
getInstance()
Returns the current exception monitor. |
static void |
setInstance(ExceptionMonitor monitor)
Sets the uncaught exception monitor. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionMonitor()
| Method Detail |
|---|
public static ExceptionMonitor getInstance()
public static void setInstance(ExceptionMonitor monitor)
null is specified,
the default monitor will be set.
monitor - A new instance of DefaultExceptionMonitor is set
if null is specified.public abstract void exceptionCaught(Throwable cause)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||