public class CustomSQLErrorCodesTranslation
extends java.lang.Object
SQLErrorCodeSQLExceptionTranslator
Constructor and Description |
---|
CustomSQLErrorCodesTranslation() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getErrorCodes()
Return the SQL error codes to match.
|
java.lang.Class<?> |
getExceptionClass()
Return the exception class for the specified error codes.
|
void |
setErrorCodes(java.lang.String... errorCodes)
Set the SQL error codes to match.
|
void |
setExceptionClass(java.lang.Class<?> exceptionClass)
Set the exception class for the specified error codes.
|
public void setErrorCodes(java.lang.String... errorCodes)
public java.lang.String[] getErrorCodes()
public void setExceptionClass(@Nullable java.lang.Class<?> exceptionClass)
@Nullable public java.lang.Class<?> getExceptionClass()