-
BatchUpdateException
public BatchUpdateException(java.lang.String reason,
java.lang.String SQLState,
int vendorCode,
int[] updateCounts,
java.lang.Throwable cause)
Constructs a BatchUpdateException object initialized with a given reason , SQLState , vendorCode cause and updateCounts .
-
Parameters:
-
reason - a description of the error
-
SQLState - an XOPEN or SQL:2003 code identifying the exception
-
vendorCode - an exception code used by a particular database vendor
-
updateCounts - an array of int , with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure
Note: There is no validation of updateCounts for overflow and because of this it is recommended that you use the constructor BatchUpdateException(String reason, String SQLState, int vendorCode, long []updateCounts,Throwable cause) .
-
cause - the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.
-
Since:
- 1.6
-
See Also:
-
BatchUpdateException(java.lang.String, java.lang.String, int, long[], java.lang.Throwable)
|
-
BatchUpdateException
public BatchUpdateException(java.lang.String reason,
java.lang.String SQLState,
int vendorCode,
int[] updateCounts,
java.lang.Throwable cause)
Constructs a BatchUpdateException object initialized with a given reason , SQLState , vendorCode cause and updateCounts .
-
Parameters:
-
reason - a description of the error
-
SQLState - an XOPEN or SQL:2003 code identifying the exception
-
vendorCode - an exception code used by a particular database vendor
-
updateCounts - an array of int , with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure
-
cause - the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.
-
Since:
- 1.6
|
-
BatchUpdateException
public BatchUpdateException(java.lang.String reason,
java.lang.String SQLState,
int vendorCode,
int[] updateCounts,
java.lang.Throwable cause)
Constructs a BatchUpdateException object initialized with a given reason , SQLState , vendorCode cause and updateCounts .
-
Parameters:
-
reason - a description of the error
-
SQLState - an XOPEN or SQL:2003 code identifying the exception
-
vendorCode - an exception code used by a particular database vendor
-
updateCounts - an array of int , with each element indicating the update count, Statement.SUCCESS_NO_INFO or Statement.EXECUTE_FAILED for each SQL command in the batch for JDBC drivers that continue processing after a command failure; an update count or Statement.SUCCESS_NO_INFO for each SQL command in the batch prior to the failure for JDBC drivers that stop processing after a command failure
Note: There is no validation of updateCounts for overflow and because of this it is recommended that you use the constructor BatchUpdateException(String reason, String SQLState, int vendorCode, long []updateCounts,Throwable cause) .
-
cause - the underlying reason for this SQLException (which is saved for later retrieval by the getCause() method); may be null indicating the cause is non-existent or unknown.
-
Since:
- 1.6
-
See Also:
-
BatchUpdateException(java.lang.String, java.lang.String, int, long[], java.lang.Throwable)
|
|