public class BatchExecutorException extends ExecutorException
java.sql.BatchUpdateException
is caught
during the execution of any nested batch. The exception contains the
java.sql.BatchUpdateException that is the root cause, as well as
the results from any prior nested batch that executed successfully.Constructor and Description |
---|
BatchExecutorException(String message,
BatchUpdateException cause,
List<BatchResult> successfulBatchResults,
BatchResult batchResult) |
Modifier and Type | Method and Description |
---|---|
BatchUpdateException |
getBatchUpdateException()
Returns the BatchUpdateException that caused the nested executor
to fail.
|
String |
getFailingSqlStatement()
Returns the SQL statement that caused the failure
(not the parameterArray).
|
String |
getFailingStatementId()
Returns the statement id of the statement that caused the failure.
|
List<BatchResult> |
getSuccessfulBatchResults()
Returns a list of BatchResult objects.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BatchExecutorException(String message, BatchUpdateException cause, List<BatchResult> successfulBatchResults, BatchResult batchResult)
public BatchUpdateException getBatchUpdateException()
public List<BatchResult> getSuccessfulBatchResults()
public String getFailingSqlStatement()
public String getFailingStatementId()
Copyright © 2009–2021 MyBatis.org. All rights reserved.