Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
TransactionException.cs
Go to the documentation of this file.
4
5namespace System.Transactions;
6
8[TypeForwardedFrom("System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")]
10{
12 {
14 {
16 }
17 return false;
18 }
19
20 internal static TransactionException Create(string message, Exception innerException)
21 {
23 if (log.IsEnabled())
24 {
25 log.TransactionExceptionTrace(TransactionExceptionType.TransactionException, message, (innerException == null) ? string.Empty : innerException.ToString());
26 }
27 return new TransactionException(message, innerException);
28 }
29
31 {
33 if (log.IsEnabled())
34 {
35 log.TransactionExceptionTrace(TransactionExceptionType.TransactionException, message, (innerException == null) ? string.Empty : innerException.ToString());
36 }
37 return new TransactionException(message, innerException);
38 }
39
54
56 {
58 if (log.IsEnabled())
59 {
60 log.TransactionExceptionTrace(traceSource, TransactionExceptionType.InvalidOperationException, message, (innerException == null) ? string.Empty : innerException.ToString());
61 }
62 return new InvalidOperationException(message, innerException);
63 }
64
66 {
67 }
68
69 public TransactionException(string? message)
70 : base(message)
71 {
72 }
73
75 : base(message, innerException)
76 {
77 }
78
80 : base(info, context)
81 {
82 }
83
92
102
107
109 {
112 {
114 }
116 if (log.IsEnabled())
117 {
118 log.TransactionExceptionTrace(TransactionExceptionType.InvalidOperationException, text, string.Empty);
119 }
121 }
122
132}
static string DistributedTxIDInTransactionException
Definition SR.cs:80
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string TransactionStateException
Definition SR.cs:70
static string TransactionAlreadyCompleted
Definition SR.cs:54
static string EnlistmentStateException
Definition SR.cs:28
Definition SR.cs:7
static TransactionException Create(string message, Exception innerException, Guid distributedTxId)
static TransactionException Create(TraceSourceType traceSource, string message, Exception innerException)
static Exception CreateTransactionCompletedException(Guid distributedTxId)
static TransactionException Create(string message, Guid distributedTxId)
TransactionException(SerializationInfo info, StreamingContext context)
static bool IncludeDistributedTxId(Guid distributedTxId)
static TransactionException Create(string message, Exception innerException)
static Exception CreateInvalidOperationException(TraceSourceType traceSource, string message, Exception innerException, Guid distributedTxId)
TransactionException(string? message, Exception? innerException)
static Exception CreateInvalidOperationException(TraceSourceType traceSource, string message, Exception innerException)
static Exception CreateEnlistmentStateException(Exception innerException, Guid distributedTxId)
static TransactionException CreateTransactionStateException(Exception innerException, Guid distributedTxId)
static readonly TransactionsEtwProvider Log
static readonly Guid Empty
Definition Guid.cs:86