TransactionAbortedException class final Exceptions

Thrown when a transaction was rolled back.

If the callback passed to Database.transact throw an Exception then the transaction is rolled back and the TransactionAbortedException is thrown. The exception that caused Database.transact to rollback the transaction will be given as reason.

If the transaction was rolled back because the COMMIT operation failed, then the underlying OperationException from the database driver will be given as reason.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
reason Exception
Exception that caused the transaction to be rolled back.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited