public class ExceptionEventProducer extends EventProducer
| Constructor and Description |
|---|
ExceptionEventProducer(InstrumentationDescriptor id)
Constructor.
|
ExceptionEventProducer(InstrumentationDescriptor id,
String resolution)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExceptionListener(ExceptionListener fl)
Adds a ExceptionListener.
|
void |
catchTrapped(Object sourceObject,
String exceptionName)
This method is called by the Jiapi runtime.
|
void |
catchTrapped(Object sourceObject,
String exceptionName,
Object target)
This method is called by the Jiapi runtime.
|
protected void |
fireCatchEvent(Object sourceObject,
String exceptionName,
Object target)
Fires an event when exception has been caught.
|
void |
removeExceptionListener(ExceptionListener fl)
Removes a ExceptionListener.
|
getResolutions, isProtected, isProtected, match, protect, releasepublic ExceptionEventProducer(InstrumentationDescriptor id)
id - Instrumentation decsriptor, that this ExceptionEventProducer
registers itself to.public ExceptionEventProducer(InstrumentationDescriptor id, String resolution)
catch(....) statement. This
means, that if one is catching java.lang.Exception, and
java.lang.ClassNotFoundException is trapped, the former is
used in resolution comparison.id - Instrumentation decsriptor, that this ExceptionEventProducer
registers itself to.resolution - Resolution, that is used further to select which Exceptions
will trigger events to be produced.public void addExceptionListener(ExceptionListener fl)
fl - a ExceptionListenerpublic void removeExceptionListener(ExceptionListener fl)
fl - a ExceptionListenerpublic void catchTrapped(Object sourceObject, String exceptionName)
sourceObject - source objectexceptionName - Name of the Exceptionpublic void catchTrapped(Object sourceObject, String exceptionName, Object target)
sourceObject - source objectexceptionName - Name of the Exceptiontarget - targetCopyright © 2017. All rights reserved.