Create() static private method

static private Create ( TraceSourceType traceSource, string message, Exception innerException ) : TransactionInDoubtException
traceSource TraceSourceType
message string
innerException Exception
return TransactionInDoubtException
Example #1
0
 protected override void PromotedTransactionOutcome(InternalTransaction tx)
 {
     if ((tx.innerException == null) && (tx.PromotedTransaction != null))
     {
         tx.innerException = tx.PromotedTransaction.InnerException;
     }
     throw TransactionInDoubtException.Create(System.Transactions.SR.GetString("TraceSourceBase"), tx.innerException);
 }
Example #2
0
        internal static new TransactionInDoubtException Create(TraceSourceType traceSource, string message, Exception innerException, Guid distributedTxId)
        {
            string messagewithTxId = message;

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

            return(TransactionInDoubtException.Create(traceSource, messagewithTxId, innerException));
        }
Example #3
0
 internal override void GetObjectData(InternalTransaction tx, SerializationInfo serializationInfo, StreamingContext context)
 {
     throw TransactionInDoubtException.Create(System.Transactions.SR.GetString("TraceSourceBase"), tx.innerException);
 }
Example #4
0
 internal override void CheckForFinishedTransaction(InternalTransaction tx)
 {
     throw TransactionInDoubtException.Create(System.Transactions.SR.GetString("TraceSourceBase"), tx.innerException);
 }
Example #5
0
 internal override void ChangeStatePromotedPhase1(InternalTransaction tx)
 {
     throw TransactionInDoubtException.Create(System.Transactions.SR.GetString("TraceSourceBase"), tx.innerException);
 }
Example #6
0
 internal override void EndCommit(InternalTransaction tx)
 {
     throw TransactionInDoubtException.Create(System.Transactions.SR.GetString("TraceSourceBase"), tx.innerException);
 }
 internal static TransactionInDoubtException Create(string traceSource, Exception innerException)
 {
     return(TransactionInDoubtException.Create(traceSource, SR.GetString(SR.TransactionIndoubt), innerException));
 }