logTranslation(task, sql, sqlExToUse, false);
return new CannotAcquireLockException(buildMessage(task, sql, sqlExToUse), sqlExToUse);
}
else if (Arrays.binarySearch(this.sqlErrorCodes.getDeadlockLoserCodes(), errorCode) >= 0) {
logTranslation(task, sql, sqlExToUse, false);
return new DeadlockLoserDataAccessException(buildMessage(task, sql, sqlExToUse), sqlExToUse);
}
else if (Arrays.binarySearch(this.sqlErrorCodes.getCannotSerializeTransactionCodes(), errorCode) >= 0) {
logTranslation(task, sql, sqlExToUse, false);
return new CannotSerializeTransactionException(buildMessage(task, sql, sqlExToUse), sqlExToUse);
}