|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
net.esper.client.EPException
net.esper.client.EPStatementException
net.esper.eql.parse.EPStatementSyntaxException
public class EPStatementSyntaxException
This exception is thrown to indicate a problem in statement creation.
Constructor Summary | |
---|---|
EPStatementSyntaxException(String message,
String expression)
Ctor. |
Method Summary | |
---|---|
static EPStatementSyntaxException |
convert(antlr.RecognitionException e,
String expression)
Converts from a syntax error to a nice statement exception. |
static EPStatementSyntaxException |
convert(antlr.TokenStreamException e,
String expression)
Converts from a syntax (token stream) error to a nice statement exception. |
static EPStatementSyntaxException |
convertEndOfInput(antlr.RecognitionException e,
String expression)
Converts end-of-input error from a syntax error to a nice statement exception. |
static EPStatementSyntaxException |
convertEndOfInput(antlr.RecognitionException e,
String tokenNameExpected,
String expression)
Converts end-of-input error from a syntax error to a nice statement exception. |
static String |
getPositionInfo(antlr.RecognitionException e)
Returns the position information string for a parser exception. |
Methods inherited from class net.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 |
---|
public EPStatementSyntaxException(String message, String expression)
message
- - error messageexpression
- - expression textMethod Detail |
---|
public static EPStatementSyntaxException convert(antlr.RecognitionException e, String expression)
e
- is the syntax errorexpression
- is the expression text
public static EPStatementSyntaxException convertEndOfInput(antlr.RecognitionException e, String tokenNameExpected, String expression)
e
- is the syntax errorexpression
- is the expression texttokenNameExpected
- is the name or paraphrase of the expected token
public static EPStatementSyntaxException convertEndOfInput(antlr.RecognitionException e, String expression)
e
- is the syntax errorexpression
- is the expression text
public static String getPositionInfo(antlr.RecognitionException e)
e
- is the parser exception
public static EPStatementSyntaxException convert(antlr.TokenStreamException e, String expression)
e
- is the syntax errorexpression
- is the expression text
|
© 2007 EsperTech Inc. All rights reserved. Visit us at espertech.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |