Java java.sql BatchUpdateException fields, constructors, methods, implement or subclass

Example usage for Java java.sql BatchUpdateException fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.sql BatchUpdateException.

The text is from its open source code.

Constructor

BatchUpdateException(String reason, String SQLState, int vendorCode, int[] updateCounts)
Constructs a BatchUpdateException object initialized with a given reason, SQLState, vendorCode and updateCounts.
BatchUpdateException(String reason, String SQLState, int[] updateCounts, Throwable cause)
Constructs a BatchUpdateException object initialized with a given reason, SQLState,cause, and updateCounts.

Method

intgetErrorCode()
Retrieves the vendor-specific exception code for this SQLException object.
StringgetMessage()
Returns the detail message string of this throwable.
SQLExceptiongetNextException()
Retrieves the exception chained to this SQLException object by setNextException(SQLException ex).
StringgetSQLState()
Retrieves the SQLState for this SQLException object.
int[]getUpdateCounts()
Retrieves the update count for each update statement in the batch update that executed successfully before this exception occurred.
voidprintStackTrace()
Prints this throwable and its backtrace to the standard error stream.