Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public class TransactionException

  1. Object
  2. Throwable
  3. Exception
  4. RuntimeException
  5. 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.UnexpectedRollbackA transaction was rolled back although its own method returned normally, because a method that joined it failed and marked it rollback-only.
class TransactionException.IllegalStateA MANDATORY method was called with no transaction, or a NEVER one inside one.
class TransactionException.TimedOutThe 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)