public class SQLError
extends java.lang.Object
Constructor and Description |
---|
SQLError() |
Modifier and Type | Method and Description |
---|---|
static java.sql.SQLException |
createBatchUpdateException(java.sql.SQLException underlyingEx,
long[] updateCounts,
ExceptionInterceptor interceptor)
Create a BatchUpdateException taking in consideration the JDBC version in use.
|
static java.sql.SQLException |
createCommunicationsException(JdbcConnection conn,
PacketSentTimeHolder packetSentTimeHolder,
PacketReceivedTimeHolder packetReceivedTimeHolder,
java.lang.Exception underlyingException,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
createCommunicationsException(java.lang.String message,
java.lang.Throwable underlyingException,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
createSQLException(java.lang.String message,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
createSQLException(java.lang.String message,
java.lang.String sqlState,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
createSQLException(java.lang.String message,
java.lang.String sqlState,
int vendorErrorCode,
boolean isTransient,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
createSQLException(java.lang.String message,
java.lang.String sqlState,
int vendorErrorCode,
boolean isTransient,
java.lang.Throwable cause,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
createSQLException(java.lang.String message,
java.lang.String sqlState,
int vendorErrorCode,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
createSQLException(java.lang.String message,
java.lang.String sqlState,
int vendorErrorCode,
java.lang.Throwable cause,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
createSQLException(java.lang.String message,
java.lang.String sqlState,
java.lang.Throwable cause,
ExceptionInterceptor interceptor) |
static java.sql.SQLException |
createSQLFeatureNotSupportedException()
Create a SQLFeatureNotSupportedException or a NotImplemented exception according to the JDBC version in use.
|
static java.sql.SQLException |
createSQLFeatureNotSupportedException(java.lang.String message,
java.lang.String sqlState,
ExceptionInterceptor interceptor)
Create a SQLFeatureNotSupportedException or a NotImplemented exception according to the JDBC version in use.
|
public static java.sql.SQLException createSQLException(java.lang.String message, java.lang.String sqlState, ExceptionInterceptor interceptor)
public static java.sql.SQLException createSQLException(java.lang.String message, ExceptionInterceptor interceptor)
public static java.sql.SQLException createSQLException(java.lang.String message, java.lang.String sqlState, java.lang.Throwable cause, ExceptionInterceptor interceptor)
public static java.sql.SQLException createSQLException(java.lang.String message, java.lang.String sqlState, int vendorErrorCode, ExceptionInterceptor interceptor)
public static java.sql.SQLException createSQLException(java.lang.String message, java.lang.String sqlState, int vendorErrorCode, java.lang.Throwable cause, ExceptionInterceptor interceptor)
public static java.sql.SQLException createSQLException(java.lang.String message, java.lang.String sqlState, int vendorErrorCode, boolean isTransient, ExceptionInterceptor interceptor)
public static java.sql.SQLException createSQLException(java.lang.String message, java.lang.String sqlState, int vendorErrorCode, boolean isTransient, java.lang.Throwable cause, ExceptionInterceptor interceptor)
public static java.sql.SQLException createCommunicationsException(JdbcConnection conn, PacketSentTimeHolder packetSentTimeHolder, PacketReceivedTimeHolder packetReceivedTimeHolder, java.lang.Exception underlyingException, ExceptionInterceptor interceptor)
public static java.sql.SQLException createCommunicationsException(java.lang.String message, java.lang.Throwable underlyingException, ExceptionInterceptor interceptor)
public static java.sql.SQLException createBatchUpdateException(java.sql.SQLException underlyingEx, long[] updateCounts, ExceptionInterceptor interceptor) throws java.sql.SQLException
underlyingEx
- underlying exceptionupdateCounts
- update counts of completed queries in this batchinterceptor
- exception interceptorjava.sql.SQLException
- if an error occurspublic static java.sql.SQLException createSQLFeatureNotSupportedException()
public static java.sql.SQLException createSQLFeatureNotSupportedException(java.lang.String message, java.lang.String sqlState, ExceptionInterceptor interceptor) throws java.sql.SQLException
message
- error messagesqlState
- sqlStateinterceptor
- exception interceptorjava.sql.SQLException
- if an error occurs