Class ExceptionConvertor
java.lang.Object
com.espertech.esper.compiler.internal.parse.ExceptionConvertor
Converts recognition exceptions.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.espertech.esper.common.internal.collection.UniformPair<String>
convert
(org.antlr.v4.runtime.RecognitionException e, String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser) Converts from a syntax error to a nice exception.static com.espertech.esper.common.client.PropertyAccessException
convertProperty
(org.antlr.v4.runtime.RecognitionException e, String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser) Converts from a syntax error to a nice property exception.static com.espertech.esper.common.internal.compile.stage2.StatementSpecCompileSyntaxException
convertStatement
(org.antlr.v4.runtime.RecognitionException e, String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser) Converts from a syntax error to a nice statement exception.
-
Field Details
-
END_OF_INPUT_TEXT
- See Also:
-
-
Constructor Details
-
ExceptionConvertor
public ExceptionConvertor()
-
-
Method Details
-
convertStatement
public static com.espertech.esper.common.internal.compile.stage2.StatementSpecCompileSyntaxException convertStatement(org.antlr.v4.runtime.RecognitionException e, String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser) Converts from a syntax error to a nice statement exception.- Parameters:
e
- is the syntax errorexpression
- is the expression textparser
- the parser that parsed the expressionaddPleaseCheck
- indicates to add "please check" paraphrases- Returns:
- syntax exception
-
convertProperty
public static com.espertech.esper.common.client.PropertyAccessException convertProperty(org.antlr.v4.runtime.RecognitionException e, String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser) Converts from a syntax error to a nice property exception.- Parameters:
e
- is the syntax errorexpression
- is the expression textparser
- the parser that parsed the expressionaddPleaseCheck
- indicates to add "please check" paraphrases- Returns:
- syntax exception
-
convert
public static com.espertech.esper.common.internal.collection.UniformPair<String> convert(org.antlr.v4.runtime.RecognitionException e, String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser) Converts from a syntax error to a nice exception.- Parameters:
e
- is the syntax errorexpression
- is the expression textparser
- the parser that parsed the expressionaddPleaseCheck
- indicates to add "please check" paraphrases- Returns:
- syntax exception
-