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);
}
else if (Arrays.binarySearch(this.sqlErrorCodes.getPermissionDeniedCodes(), errorCode) >= 0) {
logTranslation(task, sql, sqlExToUse, false);
return new PermissionDeniedDataAccessException(buildMessage(task, sql, sqlExToUse), sqlExToUse);
}