You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by Daniel Barclay <db...@maprtech.com> on 2015/03/30 20:54:19 UTC

re Drill error reporting: JDBC SQLException hierarchy

<ci...@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