public class ExceptionConvertor extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
END_OF_INPUT_TEXT |
Constructor and Description |
---|
ExceptionConvertor() |
Modifier and Type | Method and Description |
---|---|
static 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 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 EPStatementSyntaxException |
convertStatement(org.antlr.v4.runtime.RecognitionException e,
String expression,
boolean addPleaseCheck,
EsperEPL2GrammarParser parser)
Converts from a syntax error to a nice statement exception.
|
protected static final String END_OF_INPUT_TEXT
public static EPStatementSyntaxException convertStatement(org.antlr.v4.runtime.RecognitionException e, String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser)
e
- is the syntax errorexpression
- is the expression textparser
- the parser that parsed the expressionaddPleaseCheck
- indicates to add "please check" paraphrasespublic static PropertyAccessException convertProperty(org.antlr.v4.runtime.RecognitionException e, String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser)
e
- is the syntax errorexpression
- is the expression textparser
- the parser that parsed the expressionaddPleaseCheck
- indicates to add "please check" paraphrasespublic static UniformPair<String> convert(org.antlr.v4.runtime.RecognitionException e, String expression, boolean addPleaseCheck, EsperEPL2GrammarParser parser)
e
- is the syntax errorexpression
- is the expression textparser
- the parser that parsed the expressionaddPleaseCheck
- indicates to add "please check" paraphrases