public class SqlParseException extends Exception implements CalciteParserException
SqlParser.| Constructor and Description |
|---|
SqlParseException(String message,
SqlParserPos pos,
int[][] expectedTokenSequences,
String[] tokenImages,
Throwable parserException)
Creates a SqlParseException.
|
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getCause() |
Collection<String> |
getExpectedTokenNames()
Returns a list of the token names which could have legally occurred at
this point.
|
int[][] |
getExpectedTokenSequences()
Returns the expected token sequences.
|
SqlParserPos |
getPos()
Returns the position where this error occurred.
|
String[] |
getTokenImages()
Returns the token images.
|
addSuppressed, fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SqlParseException(String message, SqlParserPos pos, int[][] expectedTokenSequences, String[] tokenImages, Throwable parserException)
message - Messagepos - PositionexpectedTokenSequences - Token sequencestokenImages - Token imagesparserException - Parser exceptionpublic SqlParserPos getPos()
public Collection<String> getExpectedTokenNames()
If some of the alternatives contain multiple tokens, returns the last token of only these longest sequences. (This occurs when the parser is maintaining more than the usual lookup.) For instance, if the possible tokens are
{"IN"}
{"BETWEEN"}
{"LIKE"}
{"=", "<IDENTIFIER>"}
{"=", "USER"}
returns
"<IDENTIFIER>" "USER"
public String[] getTokenImages()
public int[][] getExpectedTokenSequences()
Copyright © 2012–2015 The Apache Software Foundation. All rights reserved.