src/main/java/org/vibur/dbcp/proxy/ExceptionCollector.java
final void addException(SQLException exception) {
        if (!(exception instanceof SQLTimeoutException) && !(exception instanceof SQLTransactionRollbackException)) {
            getOrInit().offer(exception); // SQLExceptions from the above two sub-types are not stored
        }
    }
final void addException(SQLException exception) {
        if (!(exception instanceof SQLTimeoutException) && !(exception instanceof SQLTransactionRollbackException)) {
            getOrInit().offer(exception); // SQLExceptions from the above two sub-types are not stored
        }
    }
final void addException ( SQLException exception ) { if ( ! ( exception instanceof SQLTimeoutException ) && ! ( exception instanceof SQLTransactionRollbackException ) ) { getOrInit ( ) . offer ( exception ) ; // SQLExceptions from the above two sub-types are not stored } }
This method will be called when an operation invoked on a JDBC object throws an SQLException.
It will accumulate a list of all non-transient SQL exceptions.

@param exception the exception thrown
This method will be called when an operation invoked on a JDBC object throws an SQLException . It will accumulate a list of all non - transient SQL exceptions .