oracle.javatools.db
Class DBSQLException
java.lang.Object
  
java.lang.Throwable
      
java.lang.Exception
          
oracle.javatools.db.DBException
              
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
 
 
| 
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 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 | 
 
DBSQLException
public DBSQLException(DBObject obj,
                      java.lang.String sql,
                      java.sql.SQLException sqe)
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
 
 
Copyright © 1997, 2009, Oracle. All rights reserved.