public class ExceptionEventProducer extends EventProducer
| Constructor and Description |
|---|
ExceptionEventProducer(InstrumentationDescriptor id)
Constructor.
|
ExceptionEventProducer(InstrumentationDescriptor id,
java.lang.String resolution)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExceptionListener(ExceptionListener fl)
Adds a ExceptionListener.
|
void |
catchTrapped(java.lang.Object sourceObject,
java.lang.String exceptionName)
This method is called by the Jiapi runtime.
|
void |
catchTrapped(java.lang.Object sourceObject,
java.lang.String exceptionName,
java.lang.Object target)
This method is called by the Jiapi runtime.
|
protected void |
fireCatchEvent(java.lang.Object sourceObject,
java.lang.String exceptionName,
java.lang.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, java.lang.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 catchTrapped(java.lang.Object sourceObject,
java.lang.String exceptionName)
public void catchTrapped(java.lang.Object sourceObject,
java.lang.String exceptionName,
java.lang.Object target)
protected void fireCatchEvent(java.lang.Object sourceObject,
java.lang.String exceptionName,
java.lang.Object target)
target - Target objectmethodName - Name of the methodpublic void removeExceptionListener(ExceptionListener fl)
fl - a ExceptionListenerCopyright © 2001. Documenation generated January 12 2013.