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 runtimeURI,
java.lang.Throwable throwable,
java.lang.String deploymentId,
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 |
getDeploymentId()
Returns the deployment id
|
java.lang.String |
getEpl()
Returns the expression text of the statement.
|
java.lang.String |
getRuntimeURI()
Returns the runtime URI.
|
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 runtimeURI, java.lang.Throwable throwable, java.lang.String deploymentId, java.lang.String statementName, java.lang.String epl, ExceptionHandlerExceptionType type, EventBean currentEvent)
runtimeURI
- runtime URIthrowable
- exceptiondeploymentId
- deployment idstatementName
- statement nameepl
- statement EPL expression texttype
- exception typecurrentEvent
- the event when applicablepublic java.lang.String getRuntimeURI()
public java.lang.Throwable getThrowable()
public java.lang.String getStatementName()
public java.lang.String getEpl()
public ExceptionHandlerExceptionType getType()
public EventBean getCurrentEvent()
public java.lang.String getDeploymentId()