Class JdbcApiSqlException

All Implemented Interfaces:
Serializable, Iterable<Throwable>
Direct Known Subclasses:
AlreadyClosedSqlException, InvalidCursorStateSqlException, InvalidParameterSqlException

public class JdbcApiSqlException extends SQLNonTransientException
SQLException for JDBC API calling-sequence/state problems.

JdbcApiSqlException is intended for errors in using the JDBC API, such as calling

invalid reference
ResultSet#getString
before calling
invalid reference
ResultSet#next
.

(JdbcApiSqlException is not for errors that are not under direct control of the programmer writing JDBC API calls, for example, invalid SQL syntax errors (which should use

invalid reference
SQLSyntaxErrorException
), errors from SQL-vs.-data mismatches (which likely should use
invalid reference
SQLDataException
), data file format errors, resource availability errors (which might use
invalid reference
SQLTransientException
), or internal Drill errors.)

TODO: Consider using ANSI-/XOPEN-standard SQL State values. (See:

etc.)

See Also:
  • Constructor Details

    • JdbcApiSqlException

      public JdbcApiSqlException(String reason, String SQLState, int vendorCode)
      See
      invalid reference
      SQLException#SQLException(String, String, int)
      .
    • JdbcApiSqlException

      public JdbcApiSqlException(String reason, String SQLState)
      See
      invalid reference
      SQLException#SQLException(String, String)
      .
    • JdbcApiSqlException

      public JdbcApiSqlException(String reason)
      See
      invalid reference
      SQLException#SQLException(String)
      .
    • JdbcApiSqlException

      public JdbcApiSqlException()
      See
      invalid reference
      SQLException#SQLException()
      .
    • JdbcApiSqlException

      public JdbcApiSqlException(Throwable cause)
      See
      invalid reference
      SQLException#SQLException(Throwable cause)
      .
    • JdbcApiSqlException

      public JdbcApiSqlException(String reason, Throwable cause)
      See
      invalid reference
      SQLException#SQLException(String, Throwable)
      .
    • JdbcApiSqlException

      public JdbcApiSqlException(String reason, String sqlState, Throwable cause)
      See
      invalid reference
      SQLException#SQLException(String, String, Throwable)
      .
    • JdbcApiSqlException

      public JdbcApiSqlException(String reason, String sqlState, int vendorCode, Throwable cause)
      See
      invalid reference
      SQLException#SQLException(String, String, int, Throwable)
      .