src/Stratis.FederatedPeg.Features.FederationGateway/TargetChain/CrossChainTransferStore.cs
/// <summary>Rolls back the database if an operation running in the context of a database transaction fails.</summary>
/// <param name="dbreezeTransaction">Database transaction to roll back.</param>
/// <param name="exception">Exception to report and re-raise.</param>
/// <param name="reason">Short reason/context code of failure.</param>
Rolls back the database if an operation running in the context of a database transaction fails.
Rolls back the database if an operation running in the context of a database transaction fails .
private void RollbackAndThrowTransactionError(DBreeze.Transactions.Transaction dbreezeTransaction, Exception exception, string reason = "FAILED_TRANSACTION")
        {
            this.logger.LogError("Error during database update: {0}, reason: {1}", exception.Message, reason);
            dbreezeTransaction.Rollback();
            throw exception;
        }
private void RollbackAndThrowTransactionError ( DBreeze . Transactions . Transaction dbreezeTransaction , Exception exception , string reason = " " ) { this . logger . LogError ( " " , exception . Message , reason ) ; dbreezeTransaction . Rollback ( ) ; throw exception ; }
Rolls back the database if an operation running in the context of a database transaction fails.
Rolls back the database if an operation running in the context of a database transaction fails .
dbreezeTransaction
DBreeze.Transactions.Transaction
Database transaction to roll back.
Database transaction to roll back .
exception
Exception
Exception to report and re-raise.
Exception to report and re - raise .
reason
string
Short reason/context code of failure.
Short reason / context code of failure .