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)
SqlExceptionTranslator
translate
in interface SqlExceptionTranslator
Copyright © 2019. All rights reserved.