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