System.Transactions.TransactionAbortedException.Create C# (CSharp) Method

Create() static private method

static private Create ( string message, Exception innerException ) : TransactionAbortedException
message string
innerException Exception
return TransactionAbortedException
        internal static new TransactionAbortedException Create(string message, Exception innerException)
        {
            TransactionsEtwProvider etwLog = TransactionsEtwProvider.Log;
            if (etwLog.IsEnabled())
            {
                etwLog.TransactionExceptionTrace(TransactionExceptionType.TransactionAbortedException, message, innerException.ToString());
            }

            return new TransactionAbortedException(message, innerException);
        }

Same methods

TransactionAbortedException::Create ( string message, Exception innerException, Guid distributedTxId ) : TransactionAbortedException

Usage Example

Example #1
0
 protected override void PromotedTransactionOutcome(InternalTransaction tx)
 {
     if ((tx.innerException == null) && (tx.PromotedTransaction != null))
     {
         tx.innerException = tx.PromotedTransaction.InnerException;
     }
     throw TransactionAbortedException.Create(System.Transactions.SR.GetString("TraceSourceLtm"), tx.innerException);
 }
All Usage Examples Of System.Transactions.TransactionAbortedException::Create
TransactionAbortedException