Inheritance: System.Transactions.TransactionException
Esempio n. 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);
 }
Esempio n. 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));
        }
Esempio n. 3
0
 internal override void GetObjectData(InternalTransaction tx, SerializationInfo serializationInfo, StreamingContext context)
 {
     throw TransactionInDoubtException.Create(System.Transactions.SR.GetString("TraceSourceBase"), tx.innerException);
 }
Esempio n. 4
0
 internal override void CheckForFinishedTransaction(InternalTransaction tx)
 {
     throw TransactionInDoubtException.Create(System.Transactions.SR.GetString("TraceSourceBase"), tx.innerException);
 }
Esempio n. 5
0
 internal override void ChangeStatePromotedPhase1(InternalTransaction tx)
 {
     throw TransactionInDoubtException.Create(System.Transactions.SR.GetString("TraceSourceBase"), tx.innerException);
 }
Esempio n. 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));
 }