Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.
public class TransactionException
- Object
- Throwable
- Exception
- RuntimeException
- TransactionException
Known subtypesTransactionException.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 types
class TransactionException.UnexpectedRollback | A transaction was rolled back although its own method returned normally, because a method that joined it failed and marked it rollback-only. |
class TransactionException.IllegalState | A MANDATORY method was called with no transaction, or a NEVER one inside one. |
class TransactionException.TimedOut | The transaction ran past its timeout and was rolled back. |
Constructors
public TransactionException(String message) | |
public TransactionException(String message, Throwable cause) |
Inherited methods
Constructor details
TransactionException
public TransactionException(String message)TransactionException
public TransactionException(String message, Throwable cause)