Structure
PostgresTransactionError
A wrapper around the errors that can occur during a transaction.
struct PostgresTransactionError
Topics
Instance Properties
var beginError: (any Error)?The error thrown when running theBEGINqueryvar closureError: (any Error)?The error thrown in the transaction closurevar commitError: (any Error)?The error thrown while committing the transaction.var file: StringThe file in which the transaction was startedvar line: IntThe line in which the transaction was startedvar rollbackError: (any Error)?The error thrown while rolling the transaction back. If theclosureErroris set, but therollbackErroris empty, the rollback was successful. If therollbackErroris set, the rollback failed.
Relationships
Conforms To
Swift.ErrorSwift.SendableSwift.SendableMetatype