logTranslation(task, sql, sqlExToUse, false);
return new BadSqlGrammarException(task, sql, sqlExToUse);
}
else if (Arrays.binarySearch(this.sqlErrorCodes.getInvalidResultSetAccessCodes(), errorCode) >= 0) {
logTranslation(task, sql, sqlExToUse, false);
return new InvalidResultSetAccessException(task, sql, sqlExToUse);
}
else if (Arrays.binarySearch(this.sqlErrorCodes.getDataAccessResourceFailureCodes(), errorCode) >= 0) {
logTranslation(task, sql, sqlExToUse, false);
return new DataAccessResourceFailureException(buildMessage(task, sql, sqlExToUse), sqlExToUse);
}