Search in sources :

Example 1 with SQLExceptionDigger

use of org.dbflute.jdbc.SQLExceptionDigger in project dbflute-core by dbflute.

the class BehaviorCommandInvoker method handleExecutionException.

protected void handleExecutionException(RuntimeException cause) {
    if (cause instanceof SQLFailureException) {
        throw cause;
    }
    final SQLExceptionDigger digger = getSQLExceptionDigger();
    final SQLException sqlEx = digger.digUp(cause);
    if (sqlEx != null) {
        handleSQLException(sqlEx);
    } else {
        throw cause;
    }
}
Also used : SQLException(java.sql.SQLException) SQLExceptionDigger(org.dbflute.jdbc.SQLExceptionDigger) SQLFailureException(org.dbflute.exception.SQLFailureException)

Aggregations

SQLException (java.sql.SQLException)1 SQLFailureException (org.dbflute.exception.SQLFailureException)1 SQLExceptionDigger (org.dbflute.jdbc.SQLExceptionDigger)1