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);
}
}
}
// We couldn't identify it more precisely - let's hand it over to the SQLState fallback translator.