src/main/java/org/vibur/dbcp/proxy/ExceptionCollector.java
final SQLException[] getExceptions() {
        Queue<SQLException> ex = exceptions;
        if (ex == null) {
            return NO_EXCEPTIONS;
        }

        return ex.toArray(NO_EXCEPTIONS);
    }
final SQLException[] getExceptions() {
        Queue<SQLException> ex = exceptions;
        if (ex == null) {
            return NO_EXCEPTIONS;
        }

        return ex.toArray(NO_EXCEPTIONS);
    }
final SQLException [ ] getExceptions ( ) { Queue < SQLException > ex = exceptions ; if ( ex == null ) { return NO_EXCEPTIONS ; } return ex . toArray ( NO_EXCEPTIONS ) ; }
Returns an array of all SQL exceptions collected by {@link #addException}. This method will be
called when a pooled Connection is closed, in order to determine whether the underlying (raw)
JDBC Connection also needs to be closed.
Returns an array of all SQL exceptions collected by {