@Override
    public RuntimeException translate(SQLException e) {
        if (containsAdditionalExceptions(e)) {
            return WRAPPER.wrap(e);
        } else {
            return new QueryException(e);
        }
    }
Default implementation of the {@link SQLExceptionTranslator} interface

@author tiwe
querydsl-sql/src/main/java/com/querydsl/sql/DefaultSQLExceptionTranslator.java