Create() static private method

static private Create ( string message, Exception innerException ) : TransactionAbortedException
message string
innerException Exception
return TransactionAbortedException
Esempio n. 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);
 }
Esempio n. 2
0
        internal static new TransactionAbortedException Create(string message, Exception innerException, Guid distributedTxId)
        {
            string messagewithTxId = message;

            if (IncludeDistributedTxId(distributedTxId))
            {
                messagewithTxId = string.Format(SR.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
            }

            return(TransactionAbortedException.Create(messagewithTxId, innerException));
        }
Esempio n. 3
0
 private TransactionException CreateTransactionAbortedException(InternalTransaction tx)
 {
     return(TransactionAbortedException.Create(System.Transactions.SR.GetString("TraceSourceLtm"), System.Transactions.SR.GetString("TransactionAborted"), tx.innerException));
 }
 internal static TransactionAbortedException Create(string traceSource, Exception innerException)
 {
     return(TransactionAbortedException.Create(traceSource, SR.GetString(SR.TransactionAborted), innerException));
 }
Esempio n. 5
0
 internal override void BeginCommit(InternalTransaction tx, bool asyncCommit, AsyncCallback asyncCallback, object asyncState)
 {
     throw TransactionAbortedException.Create(System.Transactions.SR.GetString("TraceSourceLtm"), tx.innerException);
 }
Esempio n. 6
0
 internal override void GetObjectData(InternalTransaction tx, SerializationInfo serializationInfo, StreamingContext context)
 {
     throw TransactionAbortedException.Create(System.Transactions.SR.GetString("TraceSourceLtm"), tx.innerException);
 }
Esempio n. 7
0
 internal override void CreateBlockingClone(InternalTransaction tx)
 {
     throw TransactionAbortedException.Create(System.Transactions.SR.GetString("TraceSourceLtm"), tx.innerException);
 }