Class ExceptionHandlerContext

java.lang.Object
com.espertech.esper.common.client.hook.exception.ExceptionHandlerContext

public class ExceptionHandlerContext extends Object
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 Details

    • ExceptionHandlerContext

      public ExceptionHandlerContext(String runtimeURI, Throwable throwable, String deploymentId, String statementName, String epl, ExceptionHandlerExceptionType type, EventBean currentEvent)
      Ctor.
      Parameters:
      runtimeURI - runtime URI
      throwable - exception
      deploymentId - deployment id
      statementName - statement name
      epl - statement EPL expression text
      type - exception type
      currentEvent - the event when applicable
  • Method Details

    • getRuntimeURI

      public String getRuntimeURI()
      Returns the runtime URI.
      Returns:
      runtime URI
    • getThrowable

      public Throwable getThrowable()
      Returns the exception.
      Returns:
      exception
    • getStatementName

      public String 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

      public String getEpl()
      Returns the expression text of the statement.
      Returns:
      statement.
    • getType

      Returns exception type information
      Returns:
      type
    • getCurrentEvent

      public EventBean getCurrentEvent()
      Returns the current event, when available.
      Returns:
      current event or null if not available
    • getDeploymentId

      public String getDeploymentId()
      Returns the deployment id
      Returns:
      deployment id