public class JdbcApiSqlException extends SQLNonTransientException
JdbcApiSqlException
is intended for errors in using the JDBC API,
such as calling ResultSet#getString
before calling
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 SQLSyntaxErrorException
), errors
from SQL-vs.-data mismatches (which likely should use SQLDataException
),
data file format errors, resource availability errors (which might use
SQLTransientException
), or internal Drill errors.)
TODO: Consider using ANSI-/XOPEN-standard SQL State values. (See:
etc.)
Constructor and Description |
---|
JdbcApiSqlException()
See
SQLException#SQLException() . |
JdbcApiSqlException(String reason)
See
SQLException#SQLException(String) . |
JdbcApiSqlException(String reason,
String SQLState)
See
SQLException#SQLException(String, String) . |
JdbcApiSqlException(String reason,
String SQLState,
int vendorCode)
See
SQLException#SQLException(String, String, int) . |
JdbcApiSqlException(String reason,
String sqlState,
int vendorCode,
Throwable cause)
See
SQLException#SQLException(String, String, int, Throwable) . |
JdbcApiSqlException(String reason,
String sqlState,
Throwable cause)
See
SQLException#SQLException(String, String, Throwable) . |
JdbcApiSqlException(String reason,
Throwable cause)
See
SQLException#SQLException(String, Throwable) . |
JdbcApiSqlException(Throwable cause)
See
SQLException#SQLException(Throwable cause) . |
getErrorCode, getNextException, getSQLState, iterator, setNextException
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public JdbcApiSqlException(String reason, String SQLState, int vendorCode)
SQLException#SQLException(String, String, int)
.public JdbcApiSqlException(String reason, String SQLState)
SQLException#SQLException(String, String)
.public JdbcApiSqlException(String reason)
SQLException#SQLException(String)
.public JdbcApiSqlException()
SQLException#SQLException()
.public JdbcApiSqlException(Throwable cause)
SQLException#SQLException(Throwable cause)
.public JdbcApiSqlException(String reason, Throwable cause)
SQLException#SQLException(String, Throwable)
.public JdbcApiSqlException(String reason, String sqlState, Throwable cause)
SQLException#SQLException(String, String, Throwable)
.Copyright © 1970 The Apache Software Foundation. All rights reserved.