public static interface DOF.UncaughtExceptionListener
DOF.Log
at level ERROR
.
Make sure to add a DOF.Log.Listener
with DOF.Log.addListener(DOF.Log.Level, DOF.Log.Listener)
at level ERROR
.Modifier and Type | Method and Description |
---|---|
void |
removed(DOF dof,
DOFException exception)
Called when the UncaughtExceptionListener is removed from the DOF.
|
void |
uncaughtException(DOF dof,
java.lang.String methodName,
java.lang.Thread t,
java.lang.Throwable e)
This method handles the exceptions.
|
void uncaughtException(DOF dof, java.lang.String methodName, java.lang.Thread t, java.lang.Throwable e)
dof
- The DOF where this listener was added. This will never be null.methodName
- The full name (class.method) of the offending method.t
- The exception was thrown in this thread.e
- The exception to handle.void removed(DOF dof, DOFException exception)
removed
methods, this one is not guaranteed to be called in any order with respect to the
uncaughtException(org.opendof.core.oal.DOF, java.lang.String, java.lang.Thread, java.lang.Throwable)
call.dof
- The DOF where this listener was added. This will never be null.exception
- An exception that caused the listener to be removed prematurely. This will be null if the application removed the listener normally.