public class ExceptionConvertor
extends java.lang.Object
Constructor and Description |
---|
ExceptionConvertor() |
Modifier and Type | Method and Description |
---|---|
static UniformPair<java.lang.String> |
convert(RecognitionException e,
java.lang.String expression,
boolean addPleaseCheck,
EsperEPL2GrammarParser parser)
Converts from a syntax error to a nice exception.
|
static PropertyAccessException |
convertProperty(RecognitionException e,
java.lang.String expression,
boolean addPleaseCheck,
EsperEPL2GrammarParser parser)
Converts from a syntax error to a nice property exception.
|
static EPStatementSyntaxException |
convertStatement(RecognitionException e,
java.lang.String expression,
boolean addPleaseCheck,
EsperEPL2GrammarParser parser)
Converts from a syntax error to a nice statement exception.
|
public static EPStatementSyntaxException convertStatement(RecognitionException e, java.lang.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(RecognitionException e, java.lang.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<java.lang.String> convert(RecognitionException e, java.lang.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