Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

oracle.javatools.db.sql
Class SQLParseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.javatools.db.DBException
              extended by oracle.javatools.db.sql.SQLQueryException
                  extended by oracle.javatools.db.sql.InvalidSQLException
                      extended by 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
           
 
Constructor Summary
SQLParseException(PlsqlError[] errors)
           
SQLParseException(PlsqlError[] errors, java.lang.String query)
           
 
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 oracle.javatools.db.sql.InvalidSQLException
getColumnNumber, getLineNumber, getSQL, getSQLWithError
 
Methods inherited from class oracle.javatools.db.DBException
getNextException, getObject, setNextException
 
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
 

Field Detail

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
Constructor Detail

SQLParseException

public SQLParseException(PlsqlError[] errors)

SQLParseException

public SQLParseException(PlsqlError[] errors,
                         java.lang.String query)
Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.6.0)

E13403-07

Copyright © 1997, 2011, Oracle. All rights reserved.