mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#991 ENH: Add forUpdateNoWait() and forUpdateSkipLocked() options ... #528 ENH: Improve exception handling
This commit is contained in:
1 parent
a3dbd4538f
commit
c8d01828b3
49 files changed
+985
-336
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package io.ebeaninternal.server.persist;
|
||||
|
||||
|
||||
import java.sql.SQLException;
|
||||
|
||||
/**
|
||||
* Holds the first SQLException found when executing a JDBC batch.
|
||||
*/
|
||||
public class BatchedSqlException extends Exception {
|
||||
|
||||
private SQLException cause;
|
||||
|
||||
BatchedSqlException(String message, SQLException cause) {
|
||||
super(message, cause);
|
||||
this.cause = cause;
|
||||
}
|
||||
|
||||
@Override
|
||||
public SQLException getCause() {
|
||||
return cause;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user