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