PostgresFailure class final
A server-reported error, preserving SQLSTATE and the original exception.
- Implemented types
Constructors
- PostgresFailure(ServerException cause)
-
Wraps a PostgreSQL server failure without losing its SQLSTATE.
const
Properties
- cause → ServerException
-
The original driver exception, including server diagnostics.
final
- code → String?
-
Five-character SQLSTATE reported by the server, when available.
no setter
- commitRejected → bool
-
Whether the error establishes that this COMMIT was rejected by the server.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- retryCommit → bool
-
Retry the same COMMIT only while the adapter confirms the transaction is active.
no setteroverride
- retryTransaction → bool
-
Whether this failure can be considered for a complete transaction retry.
no setteroverride
- 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