public class SqlCodeTranslator extends Object implements SqlExceptionTranslator
| Constructor and Description |
|---|
SqlCodeTranslator()
Create "No-op" implementation.
|
SqlCodeTranslator(Map<String,DataErrorType> map)
Create given the map of SQLState codes to error types.
|
| Modifier and Type | Method and Description |
|---|---|
javax.persistence.PersistenceException |
translate(String message,
SQLException e)
Translate the given exception.
|
public SqlCodeTranslator(Map<String,DataErrorType> map)
public SqlCodeTranslator()
public javax.persistence.PersistenceException translate(String message, SQLException e)
SqlExceptionTranslatortranslate in interface SqlExceptionTranslatorCopyright © 2019. All rights reserved.