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