public class CoreExceptionsHandler extends FHandler implements UncaughtExceptionListener
FHandler.AgentStartType
Constructor and Description |
---|
CoreExceptionsHandler() |
Modifier and Type | Method and Description |
---|---|
void |
init()
The method is called by SNMP agent when it's initialized.
|
void |
registerMib(BaseMib mb) |
void |
reportException(java.lang.String comment,
java.lang.Throwable e)
Adds exception to the list
|
void |
uncaughtException(java.lang.Thread t,
java.lang.Throwable e)
Invoked from
UncaughtExceptionHandler
when an uncaught exception is discovered. |
getTimestampNow, isIntegerEqual, setAgent, shutdown, start, stop
public void init()
init
in class FHandler
FHandler.init()
public void registerMib(BaseMib mb) throws FException
registerMib
in class FHandler
FException
public void reportException(java.lang.String comment, java.lang.Throwable e)
comment
- exception commente
- exceptionpublic void uncaughtException(java.lang.Thread t, java.lang.Throwable e)
UncaughtExceptionHandler
when an uncaught exception is discovered.uncaughtException
in interface UncaughtExceptionListener
t
- thread were exception was discoverede
- exceptionUncaughtExceptionListener.uncaughtException(java.lang.Thread, java.lang.Throwable)