|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nanocontainer.persistence.DefaultExceptionFactory
public class DefaultExceptionFactory
Default factory for the persistence exceptions
| Constructor Summary | |
|---|---|
DefaultExceptionFactory()
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultExceptionFactory()
| Method Detail |
|---|
public RuntimeException createPersistenceException(Throwable cause)
ExceptionFactorycause if it is already an
instance of Persistence's exception.
createPersistenceException in interface ExceptionFactorycause - Original exception.
public RuntimeException createConcurrencyFailureException(Throwable cause)
ExceptionFactory
createConcurrencyFailureException in interface ExceptionFactorycause - Original exception.
public RuntimeException createStaleObjectStateException(Throwable cause,
String type,
Object id)
ExceptionFactory
createStaleObjectStateException in interface ExceptionFactorycause - 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.
public RuntimeException createObjectRetrievalFailureException(Throwable cause,
String type,
Object id)
ExceptionFactory
createObjectRetrievalFailureException in interface ExceptionFactorycause - 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.
public RuntimeException createTransactionException(Throwable cause)
ExceptionFactory
createTransactionException in interface ExceptionFactorycause - Original exception.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||