66 references to Exception
dotnet-svcutil-lib (66)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ActionItem.cs (1)
55
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AssertHelper.cs (1)
38
Fx.
Exception
.TraceFailFast(message);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (10)
116
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.AsyncResultCompletedTwice(GetType())));
180
throw Fx.
Exception
.AsError(new CallbackException(InternalSR.AsyncCallbackThrewException, e));
196
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult));
293
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult));
326
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.InvalidAsyncResultImplementation(result.GetType())));
338
throw Fx.
Exception
.AsError(new InvalidOperationException(message));
347
throw Fx.
Exception
.ArgumentNull("result");
354
throw Fx.
Exception
.Argument("result", InternalSR.InvalidAsyncResult);
359
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.AsyncResultAlreadyEnded));
377
throw Fx.
Exception
.AsError(asyncResult._exception);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\BufferedOutputStream.cs (10)
82
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
86
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
160
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.ReadNotSupported));
165
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.ReadNotSupported));
170
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
175
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
238
throw Fx.
Exception
.ArgumentOutOfRange("size", size, InternalSR.ValueMustBeNonNegative);
243
throw Fx.
Exception
.AsError(CreateQuotaExceededException(_maxSizeQuota));
249
throw Fx.
Exception
.AsError(CreateQuotaExceededException(_maxSizeQuota));
283
throw Fx.
Exception
.AsError(CreateQuotaExceededException(_maxSize));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Diagnostics\EventDescriptor.cs (4)
42
throw Fx.
Exception
.ArgumentOutOfRange("id", id, InternalSR.ValueMustBeNonNegative);
47
throw Fx.
Exception
.ArgumentOutOfRange("id", id, string.Empty);
59
throw Fx.
Exception
.ArgumentOutOfRange("task", task, InternalSR.ValueMustBeNonNegative);
64
throw Fx.
Exception
.ArgumentOutOfRange("task", task, string.Empty);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (9)
166
Fx.
Exception
.TraceFailFast(failFastMessage);
349
Fx.
Exception
.AsError(exception);
365
Fx.
Exception
.AsError(exception);
379
Fx.
Exception
.TraceUnhandledException(exception);
577
throw Fx.
Exception
.ArgumentNull("elementType");
618
throw Fx.
Exception
.ArgumentNull("elementType");
652
throw Fx.
Exception
.ArgumentNullOrEmpty("limit");
814
throw Fx.
Exception
.ArgumentNull("exceptionType");
818
throw Fx.
Exception
.ArgumentNullOrEmpty("diagnosis");
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (4)
152
throw Fx.
Exception
.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout)));
291
throw Fx.
Exception
.AsError(new TimeoutException());
787
throw Fx.
Exception
.AsError(_exception);
1062
throw Fx.
Exception
.AsError(_exception);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InternalBufferManager.cs (1)
222
throw Fx.
Exception
.Argument("buffer", InternalSR.BufferIsNotRightSizeForBufferManager);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\SignalGate.cs (1)
85
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.InvalidSemaphoreExit));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (2)
23
throw Fx.
Exception
.AsError<TException>(task.Exception);
233
throw Fx.
Exception
.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout)));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TimeoutHelper.cs (2)
193
throw Fx.
Exception
.ArgumentOutOfRange(argumentName, timeout, InternalSR.TimeoutMustBeNonNegative(argumentName, timeout));
206
throw Fx.
Exception
.ArgumentOutOfRange(argumentName, timeout, InternalSR.TimeoutMustBePositive(argumentName, timeout));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\UrlUtility.cs (2)
38
throw Fx.
Exception
.ArgumentNull("query");
43
throw Fx.
Exception
.ArgumentNull("encoding");
FrameworkFork\System.ServiceModel\SMDiagnostics\DiagnosticUtility.cs (1)
74
throw Fx.
Exception
.AsError(new InvalidOperationException());
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenProvider.cs (6)
31
throw Fx.
Exception
.AsError(new SecurityTokenException(string.Format(SRServiceModel.TokenProviderUnableToGetToken, this)));
40
throw Fx.
Exception
.ArgumentNull("tokenToBeRenewed");
45
throw Fx.
Exception
.AsError(new SecurityTokenException(string.Format(SRServiceModel.TokenProviderUnableToRenewToken, this)));
54
throw Fx.
Exception
.ArgumentNull("token");
64
throw Fx.
Exception
.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenRenewalNotSupported, this)));
69
throw Fx.
Exception
.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenCancellationNotSupported, this)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenRequirement.cs (3)
123
throw Fx.
Exception
.ArgumentOutOfRange("value", value, SRServiceModel.ValueMustBeNonNegative);
151
throw Fx.
Exception
.Argument(propertyName, string.Format(SRServiceModel.SecurityTokenRequirementDoesNotContainProperty, propertyName));
166
throw Fx.
Exception
.Argument(propertyName, string.Format(SRServiceModel.SecurityTokenRequirementHasInvalidTypeForProperty, propertyName, dictionaryValue.GetType(), typeof(TValue)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyType.cs (1)
30
throw Fx.
Exception
.AsError(new InvalidEnumArgumentException("value", (int)value,
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyUsage.cs (1)
28
throw Fx.
Exception
.AsError(new InvalidEnumArgumentException("value", (int)value,
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\UserNameSecurityToken.cs (2)
25
throw Fx.
Exception
.ArgumentNull("userName");
28
throw Fx.
Exception
.Argument("userName", SRServiceModel.UserNameCannotBeEmpty);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (1)
151
Fx.
Exception
.TraceUnhandledException(e);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (4)
151
throw Fx.
Exception
.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout)));
1071
throw Fx.
Exception
.AsError(new TimeoutException(InternalSR.TaskTimedOutError(new TimeSpan(ReadTimeout))));
1151
throw Fx.
Exception
.AsError(new TimeoutException(InternalSR.TaskTimedOutError(new TimeSpan(WriteTimeout))));
1225
throw Fx.
Exception
.AsError(