public class ExceptionTransformer
extends java.lang.Object
Constructor and Description |
---|
ExceptionTransformer() |
Modifier and Type | Method and Description |
---|---|
static ExceptionTransformer |
getInstance()
Returns a generic instance.
|
FetchException |
toFetchException(java.lang.Throwable e)
Transforms the given throwable into an appropriate fetch exception.
|
PersistException |
toPersistException(java.lang.Throwable e)
Transforms the given throwable into an appropriate persist exception.
|
RepositoryException |
toRepositoryException(java.lang.Throwable e)
Transforms the given throwable into an appropriate repository
exception.
|
protected FetchException |
transformIntoFetchException(java.lang.Throwable e)
Override to support custom transformations, returning null if none is
applicable.
|
protected PersistException |
transformIntoPersistException(java.lang.Throwable e)
Override to support custom transformations, returning null if none is
applicable.
|
protected RepositoryException |
transformIntoRepositoryException(java.lang.Throwable e)
Override to support custom transformations, returning null if none is
applicable.
|
public static ExceptionTransformer getInstance()
public FetchException toFetchException(java.lang.Throwable e)
e
- required exception to transformpublic PersistException toPersistException(java.lang.Throwable e)
e
- required exception to transformpublic RepositoryException toRepositoryException(java.lang.Throwable e)
e
- required exception to transformprotected FetchException transformIntoFetchException(java.lang.Throwable e)
e
- required exception to transformprotected PersistException transformIntoPersistException(java.lang.Throwable e)
e
- required exception to transformprotected RepositoryException transformIntoRepositoryException(java.lang.Throwable e)
e
- required exception to transformCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.