63 references to Exception
System.ServiceModel.Primitives (63)
Internals\System\Runtime\ActionItem.cs (2)
56throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled)); 67throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
Internals\System\Runtime\AsyncResult.cs (10)
93throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncResultCompletedTwice(GetType()))); 155throw Fx.Exception.AsError(new CallbackException(InternalSR.AsyncCallbackThrewException, e)); 170throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult)); 267throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult)); 300throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidAsyncResultImplementation(result.GetType()))); 312throw Fx.Exception.AsError(new InvalidOperationException(message)); 321throw Fx.Exception.ArgumentNull("result"); 328throw Fx.Exception.Argument("result", InternalSR.InvalidAsyncResult); 333throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncResultAlreadyEnded)); 351throw Fx.Exception.AsError(asyncResult._exception);
Internals\System\Runtime\BufferedOutputStream.cs (12)
83throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 87throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 139throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 144throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 186throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 191throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 196throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 201throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 264throw Fx.Exception.ArgumentOutOfRange("size", size, InternalSR.ValueMustBeNonNegative); 269throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSizeQuota)); 275throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSizeQuota)); 309throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSize));
Internals\System\Runtime\Diagnostics\EventDescriptor.cs (4)
43throw Fx.Exception.ArgumentOutOfRange("id", id, InternalSR.ValueMustBeNonNegative); 48throw Fx.Exception.ArgumentOutOfRange("id", id, string.Empty); 60throw Fx.Exception.ArgumentOutOfRange("task", task, InternalSR.ValueMustBeNonNegative); 65throw Fx.Exception.ArgumentOutOfRange("task", task, string.Empty);
Internals\System\Runtime\Fx.cs (9)
168Fx.Exception.TraceFailFast(failFastMessage); 366throw Exception.AsError( 381throw Fx.Exception.AsError( 395Fx.Exception.TraceUnhandledException(exception); 625ElementType = elementType ?? throw Fx.Exception.ArgumentNull("elementType"); 653ElementType = elementType ?? throw Fx.Exception.ArgumentNull("elementType"); 676throw Fx.Exception.ArgumentNullOrEmpty("limit"); 810throw Fx.Exception.ArgumentNullOrEmpty("diagnosis"); 813ExceptionType = exceptionType ?? throw Fx.Exception.ArgumentNull("exceptionType");
Internals\System\Runtime\InputQueue.cs (5)
147throw Fx.Exception.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout))); 159throw Fx.Exception.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout))); 347throw Fx.Exception.AsError(new TimeoutException()); 884throw Fx.Exception.AsError(Exception); 1136throw Fx.Exception.AsError(_exception);
Internals\System\Runtime\InternalBufferManager.cs (1)
220throw Fx.Exception.Argument("buffer", InternalSR.BufferIsNotRightSizeForBufferManager);
Internals\System\Runtime\IOThreadScheduler.cs (2)
108throw Fx.Exception.ArgumentNull(nameof(callback)); 128throw Fx.Exception.ArgumentNull(nameof(callback));
Internals\System\Runtime\SignalGate.cs (1)
86throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidSemaphoreExit));
Internals\System\Runtime\TaskHelpers.cs (2)
24throw Fx.Exception.AsError<TException>(task.Exception); 345throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout)));
Internals\System\Runtime\TimeoutHelper.cs (2)
190throw Fx.Exception.ArgumentOutOfRange(argumentName, timeout, InternalSR.TimeoutMustBeNonNegative(argumentName, timeout)); 203throw Fx.Exception.ArgumentOutOfRange(argumentName, timeout, InternalSR.TimeoutMustBePositive(argumentName, timeout));
Internals\System\Runtime\UrlUtility.cs (2)
39throw Fx.Exception.ArgumentNull("query"); 44throw Fx.Exception.ArgumentNull("encoding");
System\IdentityModel\Selectors\SecurityTokenProvider.cs (4)
65throw Fx.Exception.AsError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToGetToken, this))); 144throw Fx.Exception.ArgumentNull(nameof(tokenToBeRenewed)); 150throw Fx.Exception.AsError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToRenewToken, this))); 217throw Fx.Exception.ArgumentNull(nameof(token));
System\IdentityModel\Selectors\SecurityTokenRequirement.cs (3)
123throw Fx.Exception.ArgumentOutOfRange("value", value, SRP.ValueMustBeNonNegative); 151throw Fx.Exception.Argument(propertyName, string.Format(SRP.SecurityTokenRequirementDoesNotContainProperty, propertyName)); 166throw Fx.Exception.Argument(propertyName, string.Format(SRP.SecurityTokenRequirementHasInvalidTypeForProperty, propertyName, dictionaryValue.GetType(), typeof(TValue)));
System\IdentityModel\Tokens\SecurityKeyType.cs (1)
31throw Fx.Exception.AsError(new InvalidEnumArgumentException("value", (int)value,
System\IdentityModel\Tokens\SecurityKeyUsage.cs (1)
29throw Fx.Exception.AsError(new InvalidEnumArgumentException("value", (int)value,
System\IdentityModel\Tokens\UserNameSecurityToken.cs (2)
26throw Fx.Exception.ArgumentNull(nameof(userName)); 31throw Fx.Exception.Argument(nameof(userName), SRP.UserNameCannotBeEmpty);