CouldNotRollBackException class Null safety
Exception thrown by drift when rolling back a transaction fails.
When using a transaction
block, transactions are automatically rolled back
when the inner block throws an exception.
If sending the ROLLBACK TRANSACTION
command fails as well, drift reports
both that and the initial error with a CouldNotRollBackException.
- Implemented types
Constructors
- CouldNotRollBackException(Object cause, StackTrace originalStackTrace, Object exception)
- Creates a CouldNotRollBackException from the cause, its originalStackTrace and the exception.
Properties
- cause → Object
-
The original exception that caused the transaction to be rolled back.
final
- exception → Object
-
The exception thrown by the database implementation when attempting to
issue the
ROLLBACK
command.sfinal - hashCode → int
-
The hash code for this object.
read-onlyinherited
- originalStackTrace → StackTrace
-
The StackTrace of the original cause.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited