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

E13403-03

oracle.javatools.db
Class DBSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by oracle.javatools.db.DBException
              extended by oracle.javatools.db.DBSQLException
All Implemented Interfaces:
java.io.Serializable

public class DBSQLException
extends DBException

DBException subclass that is thrown when a SQLException is encountered while talking to the database. The "cause" for this exception should be the SQLException, and the query text being executed is available through getQuery().

See Also:
Serialized Form

Constructor Summary
DBSQLException(DBObject obj, java.lang.String sql, java.sql.SQLException sqe)
           
 
Method Summary
 java.lang.String getSQL()
          Returns the sql string sent to the database when the error was encountered.
 void printStackTrace(java.io.PrintStream s)
           
 void printStackTrace(java.io.PrintWriter s)
           
 
Methods inherited from class oracle.javatools.db.DBException
getNextException, getObject, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBSQLException

public DBSQLException(DBObject obj,
                      java.lang.String sql,
                      java.sql.SQLException sqe)
Method Detail

getSQL

public java.lang.String getSQL()
Returns the sql string sent to the database when the error was encountered.

Returns:

printStackTrace

public void printStackTrace(java.io.PrintWriter s)
Overrides:
printStackTrace in class java.lang.Throwable

printStackTrace

public void printStackTrace(java.io.PrintStream s)
Overrides:
printStackTrace in class java.lang.Throwable

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

E13403-03

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