Class TransactionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.codename1.backend.TransactionException
- Direct Known Subclasses:
TransactionException.IllegalState, TransactionException.TimedOut, TransactionException.UnexpectedRollback
A transaction could not begin, commit or roll back the way a
@Transactional method asked.
Unchecked, as Spring's is: a woven method keeps the signature its author wrote, and that signature cannot be made to declare a failure the author never saw. The subclasses name the cases a caller might want to tell apart.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA MANDATORY method was called with no transaction, or a NEVER one inside one.static classThe transaction ran past itstimeoutand was rolled back.static classA transaction was rolled back although its own method returned normally, because a method that joined it failed and marked it rollback-only. -
Constructor Summary
ConstructorsConstructorDescriptionTransactionException(String message) TransactionException(String message, Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
TransactionException
-
TransactionException
-