public class SQLParseException extends InvalidSQLException
| Modifier and Type | Class and Description |
|---|---|
static class |
SQLParseException.ParseError |
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
INDICATOR |
protected java.lang.String |
NEWLINE |
protected java.lang.String |
SPACE |
| Constructor and Description |
|---|
SQLParseException(SQLParseException.ParseError[] errors) |
SQLParseException(SQLParseException.ParseError[] errors,
java.lang.String query) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustOffset(int offsetAjustment)
When the parsing expressions they are wrapped to make a valid
SELECT statement; this method lets us adjust the offset
to take this wrapping into account.
|
java.lang.String |
getFragmentMessage(java.lang.String fragment,
int offset)
Get an error message modified to be specific to the given fragment.
|
java.lang.String |
getMessage()
Gets the message for this exception.
|
java.lang.Integer |
getOffset()
Gets the offset that the first error occurs at in the sql.
|
getColumnNumber, getLineNumber, getSQL, getSQLWithErrorappend, getAllMessages, getNextException, getObject, getRelatedObjects, setNextException, setRelatedObjectsprotected final java.lang.String NEWLINE
protected final java.lang.String SPACE
protected final java.lang.String INDICATOR
public SQLParseException(SQLParseException.ParseError[] errors)
public SQLParseException(SQLParseException.ParseError[] errors, java.lang.String query)
public java.lang.String getFragmentMessage(java.lang.String fragment,
int offset)
public java.lang.String getMessage()
DBExceptiongetAllMessages()getMessage in class InvalidSQLExceptionDBException.getAllMessages()public java.lang.Integer getOffset()
InvalidSQLExceptiongetOffset in class InvalidSQLExceptionpublic void adjustOffset(int offsetAjustment)