drill-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Barclay <dbarc...@maprtech.com>
Subject re Drill error reporting: JDBC SQLException hierarchy
Date Mon, 30 Mar 2015 18:54:19 GMT
<cid:part1.03030705.05090505@maprtech.com> Here's the hierarchy of JDBC SQLException
subclasses in java.sql (from
java.sql Class Hierarchy <http://docs.oracle.com/javase/8/docs/api/java/sql/package-tree.html>):
<http://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html>

  * java.sql.SQLException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLException.html>
...
      o java.sql.BatchUpdateException <http://docs.oracle.com/javase/8/docs/api/java/sql/BatchUpdateException.html>
      o java.sql.SQLClientInfoException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLClientInfoException.html>
      o java.sql.SQLNonTransientException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLNonTransientException.html>
          + java.sql.SQLDataException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLDataException.html>
          + java.sql.SQLFeatureNotSupportedException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLFeatureNotSupportedException.html>
          + java.sql.SQLIntegrityConstraintViolationException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLIntegrityConstraintViolationException.html>
          + java.sql.SQLInvalidAuthorizationSpecException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLInvalidAuthorizationSpecException.html>
          + java.sql.SQLNonTransientConnectionException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLNonTransientConnectionException.html>
          + java.sql.SQLSyntaxErrorException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLSyntaxErrorException.html>
      o java.sql.SQLRecoverableException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLRecoverableException.html>
      o java.sql.SQLTransientException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLTransientException.html>
          + java.sql.SQLTimeoutException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLTimeoutException.html>
          + java.sql.SQLTransactionRollbackException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLTransactionRollbackException.html>
          + java.sql.SQLTransientConnectionException <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLTransientConnectionException.html>
      o java.sql.SQLWarning <http://docs.oracle.com/javase/8/docs/api/java/sql/SQLWarning.html>
          + java.sql.DataTruncation <http://docs.oracle.com/javase/8/docs/api/java/sql/DataTruncation.html>


(Whether the rest of Drill actually uses any of these internally or not, enough information
should be passed back to the JDBC layer for it to be able to throw an exception of the appropriate
subclass.)

Daniel

-- 
Daniel Barclay
MapR Technologies


Mime
View raw message