public class ExceptionHandlerContext
extends java.lang.Object
ExceptionHandler
implementations providing
exception-contextual information as well as the exception itself.
Statement information pertains to the statement currently being processed when the unchecked exception occured.
Constructor and Description |
---|
ExceptionHandlerContext(java.lang.String engineURI,
java.lang.Throwable throwable,
java.lang.String statementName,
java.lang.String epl,
ExceptionHandlerExceptionType type,
EventBean currentEvent)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventBean |
getCurrentEvent()
Returns the current event, when available.
|
java.lang.String |
getEngineURI()
Returns the engine URI.
|
java.lang.String |
getEpl()
Returns the expression text of the statement.
|
java.lang.String |
getStatementName()
Returns the statement name, if provided, or the statement id assigned to the statement if no name was provided.
|
java.lang.Throwable |
getThrowable()
Returns the exception.
|
ExceptionHandlerExceptionType |
getType()
Returns exception type information
|
public ExceptionHandlerContext(java.lang.String engineURI, java.lang.Throwable throwable, java.lang.String statementName, java.lang.String epl, ExceptionHandlerExceptionType type, EventBean currentEvent)
engineURI
- engine URIthrowable
- exceptionstatementName
- statement nameepl
- statement EPL expression texttype
- exception typecurrentEvent
- the event when applicablepublic java.lang.String getEngineURI()
public java.lang.Throwable getThrowable()
public java.lang.String getStatementName()
public java.lang.String getEpl()
public ExceptionHandlerExceptionType getType()
public EventBean getCurrentEvent()