public class ExceptionHandlerContext extends 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(String engineURI,
Throwable throwable,
String statementName,
String epl,
ExceptionHandlerExceptionType type,
EventBean currentEvent)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
EventBean |
getCurrentEvent()
Returns the current event, when available.
|
String |
getEngineURI()
Returns the engine URI.
|
String |
getEpl()
Returns the expression text of the statement.
|
String |
getStatementName()
Returns the statement name, if provided, or the statement id assigned to the statement if no name was provided.
|
Throwable |
getThrowable()
Returns the exception.
|
ExceptionHandlerExceptionType |
getType()
Returns exception type information
|
public ExceptionHandlerContext(String engineURI, Throwable throwable, String statementName, String epl, ExceptionHandlerExceptionType type, EventBean currentEvent)
engineURI
- engine URIthrowable
- exceptionstatementName
- statement nameepl
- statement EPL expression texttype
- exception typecurrentEvent
- the event when applicablepublic String getEngineURI()
public Throwable getThrowable()
public String getStatementName()
public String getEpl()
public ExceptionHandlerExceptionType getType()
public EventBean getCurrentEvent()