net.esper.eql.parse
Class EPStatementSyntaxException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.esper.client.EPException
net.esper.client.EPStatementException
net.esper.eql.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
EPStatementSyntaxException
public EPStatementSyntaxException(String message,
String expression)
- Ctor.
- Parameters:
message
- - error messageexpression
- - expression text
convert
public static EPStatementSyntaxException convert(antlr.RecognitionException e,
String expression)
- Converts from a syntax error to a nice statement exception.
- Parameters:
e
- is the syntax errorexpression
- is the expression text
- Returns:
- syntax exception
convert
public static EPStatementSyntaxException convert(antlr.TokenStreamException e,
String expression)
- Converts from a syntax (token stream) error to a nice statement exception.
- Parameters:
e
- is the syntax errorexpression
- is the expression text
- Returns:
- syntax exception