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));
447
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);
2668
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2674
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2680
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2686
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
2842
SR
.UnexpectedFailureOfThreadPool,
2968
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
2974
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
2980
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
3030
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
3042
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
3182
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3187
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3213
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3219
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3225
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
3257
SR
.CannotPromoteSnapshot, null, tx.DistributedTxId);
3463
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, tx._promoterType.ToString()),
3475
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, tx._promoterType.ToString()),
3576
throw new TransactionPromotionException(
SR
.Format(
SR
.PromoterTypeUnrecognized, tx._promoterType.ToString()),
3608
TimeoutException e = new TimeoutException(
SR
.TraceTransactionTimeout);
3805
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3815
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3824
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3829
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3834
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3904
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3914
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3923
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3928
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3933
throw TransactionException.Create(
SR
.TooLate, tx == null ? Guid.Empty : tx.DistributedTxId);
3953
SR
.UnexpectedFailureOfThreadPool,
4069
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4074
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4079
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4103
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4113
throw TransactionAbortedException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4201
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4206
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4215
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4220
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4225
throw TransactionInDoubtException.Create(TraceSourceType.TraceSourceBase,
SR
.TransactionIndoubt, tx._innerException, tx.DistributedTxId);
4230
throw TransactionInDoubtException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4235
throw TransactionInDoubtException.Create(
SR
.TransactionAborted, tx._innerException, tx.DistributedTxId);
4415
SR
.PromotedReturnedInvalidValue,
4433
SR
.PromotedReturnedInvalidValue,
4456
SR
.PromotedReturnedInvalidValue,
4483
SR
.PromotedReturnedInvalidValue,
4494
SR
.PromotedTransactionExists,
4536
SR
.InvalidIPromotableSinglePhaseNotificationSpecified,
4579
SR
.InvalidIPromotableSinglePhaseNotificationSpecified,
System\Transactions\TransactionTable.cs (2)
241
SR
.UnexpectedTimerFailure,
451
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);