public class JdbcApiSqlException extends SQLNonTransientException
JdbcApiSqlException is intended for errors in using the JDBC API,
such as calling ResultSet.getString(int) 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()
|
JdbcApiSqlException(String reason)
|
JdbcApiSqlException(String reason,
String SQLState)
|
JdbcApiSqlException(String reason,
String SQLState,
int vendorCode)
|
JdbcApiSqlException(String reason,
String sqlState,
int vendorCode,
Throwable cause)
|
JdbcApiSqlException(String reason,
String sqlState,
Throwable cause)
|
JdbcApiSqlException(String reason,
Throwable cause)
|
JdbcApiSqlException(Throwable cause)
|
getErrorCode, getNextException, getSQLState, iterator, setNextExceptionaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringCopyright © 2016 The Apache Software Foundation. All rights reserved.