com.espertech.esper.client.hook
Class ExceptionHandlerContext

java.lang.Object
  extended by com.espertech.esper.client.hook.ExceptionHandlerContext

public class ExceptionHandlerContext
extends java.lang.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 Summary
ExceptionHandlerContext(java.lang.String engineURI, java.lang.Throwable throwable, java.lang.String statementName, java.lang.String epl)
          Ctor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHandlerContext

public ExceptionHandlerContext(java.lang.String engineURI,
                               java.lang.Throwable throwable,
                               java.lang.String statementName,
                               java.lang.String epl)
Ctor.

Parameters:
engineURI - engine URI
throwable - exception
statementName - statement name
epl - statement EPL expression text
Method Detail

getEngineURI

public java.lang.String getEngineURI()
Returns the engine URI.

Returns:
engine URI

getThrowable

public java.lang.Throwable getThrowable()
Returns the exception.

Returns:
exception

getStatementName

public java.lang.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 java.lang.String getEpl()
Returns the expression text of the statement.

Returns:
statement.

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com