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:
- java.io.Serializable
public class EPStatementSyntaxException
- extends EPStatementException
This exception is thrown to indicate a problem in statement creation.
- See Also:
- Serialized Form
Method Summary |
static EPStatementSyntaxException |
convert(antlr.RecognitionException e,
java.lang.String expression)
Converts from a syntax error to a nice statement exception. |
static EPStatementSyntaxException |
convert(antlr.TokenStreamException e,
java.lang.String expression)
Converts from a syntax (token stream) error to a nice statement exception. |
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 |
EPStatementSyntaxException
public EPStatementSyntaxException(java.lang.String message,
java.lang.String expression)
- Ctor.
- Parameters:
message
- - error messageexpression
- - expression text
convert
public static EPStatementSyntaxException convert(antlr.RecognitionException e,
java.lang.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,
java.lang.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