139 references to SR
System.Transactions.Local (139)
System\Transactions\CommittableTransaction.cs (1)
166
throw new ArgumentException(
SR
.BadAsyncResult, nameof(asyncResult));
System\Transactions\EnterpriseServices.cs (1)
44
throw new PlatformNotSupportedException(
SR
.EsNotSupported);
System\Transactions\InternalTransaction.cs (3)
216
throw new InvalidOperationException(
SR
.PromoterTypeInvalid);
227
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, _promoterType.ToString()), _innerException);
System\Transactions\NonWindowsUnsupported.cs (2)
47
=> new PlatformNotSupportedException(
SR
.DistributedNotSupported);
121
=> new PlatformNotSupportedException(
SR
.DistributedNotSupported);
System\Transactions\Transaction.cs (6)
169
throw new InvalidOperationException(
SR
.TransactionScopeComplete);
198
throw new InvalidOperationException(
SR
.CannotSetCurrent);
485
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
533
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
907
throw new ArgumentException(
SR
.PromoterTypeInvalid, nameof(promoterType));
946
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
System\Transactions\TransactionException.cs (36)
35
return Create(
SR
.TransactionStateException, innerException);
40
string messagewithTxId =
SR
.EnlistmentStateException;
42
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
102
return new TransactionException(
SR
.Format(
SR
.DistributedTxIDInTransactionException, message, distributedTxId));
111
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
118
return Create(
SR
.TransactionStateException, innerException, distributedTxId);
123
string messagewithTxId =
SR
.TransactionAlreadyCompleted;
125
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
140
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
158
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
176
public TransactionAbortedException() : base(
SR
.TransactionAborted)
184
public TransactionAbortedException(string? message) : base(message ??
SR
.TransactionAborted)
193
public TransactionAbortedException(string? message, Exception? innerException) : base(message ??
SR
.TransactionAborted, innerException)
201
internal TransactionAbortedException(Exception? innerException) : base(
SR
.TransactionAborted, innerException)
207
SR
.Format(
SR
.DistributedTxIDInTransactionException,
SR
.TransactionAborted, distributedTxId)
208
:
SR
.TransactionAborted, innerException)
235
messagewithTxId =
SR
.Format(
SR
.DistributedTxIDInTransactionException, messagewithTxId, distributedTxId);
254
public TransactionInDoubtException() : base(
SR
.TransactionIndoubt)
262
public TransactionInDoubtException(string? message) : base(message ??
SR
.TransactionIndoubt)
271
public TransactionInDoubtException(string? message, Exception? innerException) : base(message ??
SR
.TransactionIndoubt, innerException)
307
return Create(
SR
.TransactionManagerCommunicationException, innerException);
313
public TransactionManagerCommunicationException() : base(
SR
.TransactionManagerCommunicationException)
321
public TransactionManagerCommunicationException(string? message) : base(message ??
SR
.TransactionManagerCommunicationException)
333
) : base(message ??
SR
.TransactionManagerCommunicationException, innerException)
356
public TransactionPromotionException() : this(
SR
.PromotionFailed)
364
public TransactionPromotionException(string? message) : base(message ??
SR
.PromotionFailed)
373
public TransactionPromotionException(string? message, Exception? innerException) : base(message ??
SR
.PromotionFailed, innerException)
System\Transactions\TransactionInteropNonWindows.cs (3)
77
throw new ArgumentException(
SR
.InvalidArgument, nameof(cookie));
147
throw new ArgumentException(
SR
.InvalidArgument, nameof(propagationToken));
248
throw new ArgumentException(
SR
.InvalidArgument, nameof(propagationToken));
System\Transactions\TransactionManager.cs (8)
128
throw new InvalidOperationException(
SR
.CurrentDelegateSet);
144
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
182
throw new ArgumentException(
SR
.UnrecognizedRecoveryInformation, nameof(recoveryInformation));
191
throw new ArgumentException(
SR
.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e);
199
throw new ArgumentException(
SR
.UnrecognizedRecoveryInformation, nameof(recoveryInformation), e);
233
throw new ArgumentException(
SR
.InvalidRecoveryInformation, "recoveryInformation");
242
throw new ArgumentException(
SR
.BadResourceManagerId, nameof(resourceManagerIdentifier));
442
throw new PlatformNotSupportedException(
SR
.DistributedNotSupported);
System\Transactions\TransactionScope.cs (11)
215
throw new ArgumentException(
SR
.TransactionScopeIsolationLevelDifferentFromTransaction, nameof(transactionOptions));
297
throw new ArgumentException(
SR
.TransactionScopeIsolationLevelDifferentFromTransaction, nameof(transactionOptions));
528
throw new InvalidOperationException(
SR
.InvalidScopeThread);
564
TraceSourceType.TraceSourceBase,
SR
.TransactionScopeInvalidNesting, null, rollbackTransaction.DistributedTxId);
600
exToThrow = TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase,
SR
.TransactionScopeIncorrectCurrent, null,
627
exToThrow = TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase,
SR
.TransactionScopeInvalidNesting, null,
701
exToThrow = TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase,
SR
.TransactionScopeIncorrectCurrent, null,
839
throw TransactionException.CreateInvalidOperationException(TraceSourceType.TraceSourceBase,
SR
.DisposeScope, null);
860
throw TransactionException.Create(
SR
.InternalError +
SR
.TransactionScopeTimerObjectInvalid, null);
1156
throw new NotSupportedException(
SR
.AsyncFlowAndESInteropNotSupported);
System\Transactions\TransactionState.cs (61)
593
TimeoutException e = new TimeoutException(
SR
.TraceTransactionTimeout);
1250
TimeoutException e = new TimeoutException(
SR
.TraceTransactionTimeout);
1498
return TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
1626
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
1632
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
1638
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
2064
tx._innerException ??= new TimeoutException(
SR
.TraceTransactionTimeout);
2152
SR
.CannotPromoteSnapshot, null);
2665
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2671
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2677
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2683
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2839
SR
.UnexpectedFailureOfThreadPool,
2965
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
2971
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
2977
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
3027
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
3039
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
3179
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3184
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3210
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3216
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3222
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3254
SR
.CannotPromoteSnapshot, null, tx.DistributedTxId);
3460
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, tx._promoterType.ToString()),
3472
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, tx._promoterType.ToString()),
3573
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, tx._promoterType.ToString()),
3605
TimeoutException e = new TimeoutException(
SR
.TraceTransactionTimeout);
3802
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3812
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3821
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3826
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3831
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3901
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3911
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3920
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3925
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3930
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3950
SR
.UnexpectedFailureOfThreadPool,
4066
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4071
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4076
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4100
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4110
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4198
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4203
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4212
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4217
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4222
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4227
throw TransactionInDoubtException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4232
throw TransactionInDoubtException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4412
SR
.PromotedReturnedInvalidValue,
4430
SR
.PromotedReturnedInvalidValue,
4453
SR
.PromotedReturnedInvalidValue,
4480
SR
.PromotedReturnedInvalidValue,
4491
SR
.PromotedTransactionExists,
4533
SR
.InvalidIPromotableSinglePhaseNotificationSpecified,
4576
SR
.InvalidIPromotableSinglePhaseNotificationSpecified,
System\Transactions\TransactionTable.cs (2)
241
SR
.UnexpectedTimerFailure,
448
SR
.UnexpectedTimerFailure,
System\Transactions\VolatileEnlistmentMultiplexing.cs (4)
99
SR
.UnexpectedFailureOfThreadPool,
138
SR
.UnexpectedFailureOfThreadPool,
177
SR
.UnexpectedFailureOfThreadPool,
216
SR
.UnexpectedFailureOfThreadPool,
System\Transactions\VolatileEnlistmentState.cs (1)
72
SR
.VolEnlistNoRecoveryInfo, null, enlistment == null ? Guid.Empty : enlistment.DistributedTxId);