public class RepositoryAccessExceptionTranslator
extends java.lang.Object
| Constructor and Description |
|---|
RepositoryAccessExceptionTranslator() |
| Modifier and Type | Method and Description |
|---|---|
RepositoryAccessException |
translateExceptionIfPossible(java.lang.RuntimeException nativeException)
Translate the given runtime exception thrown by a persistence framework to a corresponding exception
from ODI RepositoryAccessException hierarchy, if possible.
|
RepositoryAccessException |
translateSQLException(java.sql.SQLException nativeException)
Translate native exception in ODI Repository specific.
|
public RepositoryAccessException translateExceptionIfPossible(java.lang.RuntimeException nativeException)
Do not translate exceptions that are not understand by this translator: for example, if coming from SDK code and unrelated to persistence.
nativeException - exception which will be translatedpublic RepositoryAccessException translateSQLException(java.sql.SQLException nativeException)
null will be returnednativeException - exception which will be translatednull if exception couldn't be translated.