com.espertech.esper.epl.parse
Class EPStatementSyntaxException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.espertech.esper.client.EPException
                  extended by com.espertech.esper.client.EPStatementException
                      extended by com.espertech.esper.epl.parse.EPStatementSyntaxException
All Implemented Interfaces:
Serializable

public class EPStatementSyntaxException
extends EPStatementException

This exception is thrown to indicate a problem in statement creation.

See Also:
Serialized Form

Constructor Summary
EPStatementSyntaxException(String message, String expression)
          Ctor.
 
Method Summary
static EPStatementSyntaxException convert(org.antlr.runtime.RecognitionException e, String expression, EsperEPL2Ast treeWalker)
          Converts from a syntax error to a nice statement exception.
static EPStatementSyntaxException convert(org.antlr.runtime.RecognitionException e, String expression, EsperEPL2GrammarParser parser)
          Converts from a syntax error to a nice statement exception.
 
Methods inherited from class com.espertech.esper.client.EPStatementException
getExpression, getMessage, setExpression
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EPStatementSyntaxException

public EPStatementSyntaxException(String message,
                                  String expression)
Ctor.

Parameters:
message - - error message
expression - - expression text
Method Detail

convert

public static EPStatementSyntaxException convert(org.antlr.runtime.RecognitionException e,
                                                 String expression,
                                                 EsperEPL2GrammarParser parser)
Converts from a syntax error to a nice statement exception.

Parameters:
e - is the syntax error
expression - is the expression text
parser - the parser that parsed the expression
Returns:
syntax exception

convert

public static EPStatementSyntaxException convert(org.antlr.runtime.RecognitionException e,
                                                 String expression,
                                                 EsperEPL2Ast treeWalker)
Converts from a syntax error to a nice statement exception.

Parameters:
e - is the syntax error
expression - is the expression text
treeWalker - the tree walker that walked the tree
Returns:
syntax exception

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com