Class ExceptionHandlerContext
java.lang.Object
com.espertech.esper.common.client.hook.exception.ExceptionHandlerContext
Context provided to
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 Summary
ConstructorDescriptionExceptionHandlerContext
(String runtimeURI, Throwable throwable, String deploymentId, String statementName, String epl, ExceptionHandlerExceptionType type, EventBean currentEvent) Ctor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the current event, when available.Returns the deployment idgetEpl()
Returns the expression text of the statement.Returns the runtime URI.Returns the statement name, if provided, or the statement id assigned to the statement if no name was provided.Returns the exception.getType()
Returns exception type information
-
Constructor Details
-
ExceptionHandlerContext
public ExceptionHandlerContext(String runtimeURI, Throwable throwable, String deploymentId, String statementName, String epl, ExceptionHandlerExceptionType type, EventBean currentEvent) Ctor.- Parameters:
runtimeURI
- runtime URIthrowable
- exceptiondeploymentId
- deployment idstatementName
- statement nameepl
- statement EPL expression texttype
- exception typecurrentEvent
- the event when applicable
-
-
Method Details
-
getRuntimeURI
Returns the runtime URI.- Returns:
- runtime URI
-
getThrowable
Returns the exception.- Returns:
- exception
-
getStatementName
Returns the statement name, if provided, or the statement id assigned to the statement if no name was provided.- Returns:
- statement name or id
-
getEpl
Returns the expression text of the statement.- Returns:
- statement.
-
getType
Returns exception type information- Returns:
- type
-
getCurrentEvent
Returns the current event, when available.- Returns:
- current event or null if not available
-
getDeploymentId
Returns the deployment id- Returns:
- deployment id
-