oracle.javatools.db.sql
Class SQLParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
oracle.javatools.db.DBException
oracle.javatools.db.sql.SQLQueryException
oracle.javatools.db.sql.InvalidSQLException
oracle.javatools.db.sql.SQLParseException
- All Implemented Interfaces:
- java.io.Serializable
public class SQLParseException
- extends InvalidSQLException
Subclass of SQLQueryException used for parse errors in the sql. These
are not associated with a particular object but indicate that the text
doesn't parse, rather than the parsed query isn't buildable.
- See Also:
- Serialized Form
Field Summary |
protected java.lang.String |
INDICATOR
|
protected java.lang.String |
NEWLINE
|
protected java.lang.String |
SPACE
|
Method Summary |
java.lang.String |
getMessage()
|
java.lang.Integer |
getOffset()
Gets the offset that the first error occurs at in the sql. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
NEWLINE
protected final java.lang.String NEWLINE
- See Also:
- Constant Field Values
SPACE
protected final java.lang.String SPACE
- See Also:
- Constant Field Values
INDICATOR
protected final java.lang.String INDICATOR
SQLParseException
public SQLParseException(PlsqlError[] errors)
SQLParseException
public SQLParseException(PlsqlError[] errors,
java.lang.String query)
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class InvalidSQLException
getOffset
public java.lang.Integer getOffset()
- Description copied from class:
InvalidSQLException
- Gets the offset that the first error occurs at in the sql.
- Overrides:
getOffset
in class InvalidSQLException
- Returns:
- the offset of the error, or null if the offset is not known
Copyright © 1997, 2011, Oracle. All rights reserved.