|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ExceptionFactory
Factory component used by ExceptionHandler in order to create exceptions.
| Method Summary | |
|---|---|
RuntimeException |
createConcurrencyFailureException(Throwable cause)
Creates an instance of the exception which indicates concurrency failure. |
RuntimeException |
createObjectRetrievalFailureException(Throwable cause,
String type,
Object id)
Creates an instance of the exception which indicates that an object retrieval failure happens. |
RuntimeException |
createPersistenceException(Throwable cause)
Creates an instance of the persistence exception. |
RuntimeException |
createStaleObjectStateException(Throwable cause,
String type,
Object id)
Creates an instance of the exception which indicates that the version number or timestamp check failed or try delete or update a row that does not exist anymore. |
RuntimeException |
createTransactionException(Throwable cause)
Creates an instance of the exception which indicates that a transaction could not be begun, committed or rolled back. |
| Method Detail |
|---|
RuntimeException createPersistenceException(Throwable cause)
cause if it is already an
instance of Persistence's exception.
cause - Original exception.
RuntimeException createConcurrencyFailureException(Throwable cause)
cause - Original exception.
RuntimeException createStaleObjectStateException(Throwable cause,
String type,
Object id)
cause - Original exception.type - A string which indicate which entity it has happened or null if it can't be determined.id - The id representation of its object or null if it can't be determined.
RuntimeException createObjectRetrievalFailureException(Throwable cause,
String type,
Object id)
cause - Original exception.type - A string which indicate which entity it has happened or null if it can't be determined.id - The id representation of its object or null if it can't be determined.
RuntimeException createTransactionException(Throwable cause)
cause - Original exception.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||