105 references to Exception
System.ServiceModel.Internals (105)
System\Runtime\ActionItem.cs (4)
75
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
100
throw Fx.
Exception
.ArgumentNull("context");
104
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
118
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
System\Runtime\AsyncEventArgs.cs (3)
40
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.AsyncEventArgsCompletionPending(GetType())));
53
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.AsyncEventArgsCompletedTwice(GetType())));
93
throw Fx.
Exception
.ArgumentNull("callback");
System\Runtime\AsyncResult.cs (10)
125
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.AsyncResultCompletedTwice(GetType())));
196
throw Fx.
Exception
.AsError(new CallbackException(InternalSR.AsyncCallbackThrewException, e));
212
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult));
309
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult));
342
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.InvalidAsyncResultImplementation(result.GetType())));
354
throw Fx.
Exception
.AsError(new InvalidOperationException(message));
363
throw Fx.
Exception
.ArgumentNull("result");
370
throw Fx.
Exception
.Argument("result", InternalSR.InvalidAsyncResult);
375
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.AsyncResultAlreadyEnded));
406
throw Fx.
Exception
.AsError(asyncResult.exception);
System\Runtime\AsyncWaitHandle.cs (1)
263
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.MustCancelOldTimer));
System\Runtime\BufferedOutputStream.cs (12)
84
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
88
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
140
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.ReadNotSupported));
145
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.ReadNotSupported));
187
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.ReadNotSupported));
192
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.ReadNotSupported));
197
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
202
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
265
throw Fx.
Exception
.ArgumentOutOfRange("size", size, InternalSR.ValueMustBeNonNegative);
270
throw Fx.
Exception
.AsError(CreateQuotaExceededException(this.maxSizeQuota));
276
throw Fx.
Exception
.AsError(CreateQuotaExceededException(this.maxSizeQuota));
310
throw Fx.
Exception
.AsError(CreateQuotaExceededException(this.maxSize));
System\Runtime\Collections\NullableKeyDictionary.cs (8)
60
throw Fx.
Exception
.AsError(new KeyNotFoundException());
88
throw Fx.
Exception
.Argument("key", InternalSR.NullKeyAlreadyPresent);
250
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.KeyCollectionUpdatesNotAllowed));
255
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.KeyCollectionUpdatesNotAllowed));
274
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.KeyCollectionUpdatesNotAllowed));
325
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.ValueCollectionUpdatesNotAllowed));
330
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.ValueCollectionUpdatesNotAllowed));
350
throw Fx.
Exception
.AsError(new NotSupportedException(InternalSR.ValueCollectionUpdatesNotAllowed));
System\Runtime\Collections\OrderedDictionary.cs (10)
58
throw Fx.
Exception
.ArgumentNull("key");
67
throw Fx.
Exception
.AsError(new KeyNotFoundException(InternalSR.KeyNotFoundInDictionary));
74
throw Fx.
Exception
.ArgumentNull("key");
128
throw Fx.
Exception
.ArgumentNull("key");
155
throw Fx.
Exception
.ArgumentNull("key");
165
throw Fx.
Exception
.ArgumentNull("array");
170
throw Fx.
Exception
.AsError(new ArgumentOutOfRangeException("arrayIndex"));
175
throw Fx.
Exception
.Argument("array", InternalSR.BadCopyToArray);
216
throw Fx.
Exception
.ArgumentNull("key");
234
throw Fx.
Exception
.ArgumentNull("key");
System\Runtime\Diagnostics\DiagnosticEventProvider.cs (6)
399
throw Fx.
Exception
.AsError(new ArgumentNullException("eventMessage"));
527
throw Fx.
Exception
.AsError(new ArgumentOutOfRangeException("eventPayload",
566
throw Fx.
Exception
.AsError(new ArgumentOutOfRangeException("eventPayload",
754
throw Fx.
Exception
.AsError(new ArgumentOutOfRangeException("eventPayload",
793
throw Fx.
Exception
.AsError(new ArgumentOutOfRangeException("eventPayload",
869
throw Fx.
Exception
.ArgumentNull("eventTraceActivity");
System\Runtime\Diagnostics\EventDescriptor.cs (4)
40
throw Fx.
Exception
.ArgumentOutOfRange("id", id, InternalSR.ValueMustBeNonNegative);
45
throw Fx.
Exception
.ArgumentOutOfRange("id", id, string.Empty);
57
throw Fx.
Exception
.ArgumentOutOfRange("task", task, InternalSR.ValueMustBeNonNegative);
62
throw Fx.
Exception
.ArgumentOutOfRange("task", task, string.Empty);
System\Runtime\Diagnostics\EventLogger.cs (1)
218
Fx.
Exception
.TraceHandledException(ex, TraceEventType.Information);
System\Runtime\Fx.cs (9)
187
Fx.
Exception
.TraceFailFast(failFastMessage);
461
throw Fx.
Exception
.AsError(
476
throw Fx.
Exception
.AsError(
491
Fx.
Exception
.TraceUnhandledException(exception);
690
throw Fx.
Exception
.ArgumentNull("elementType");
731
throw Fx.
Exception
.ArgumentNull("elementType");
765
throw Fx.
Exception
.ArgumentNullOrEmpty("limit");
927
throw Fx.
Exception
.ArgumentNull("exceptionType");
931
throw Fx.
Exception
.ArgumentNullOrEmpty("diagnosis");
System\Runtime\InputQueue.cs (4)
153
throw Fx.
Exception
.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout)));
292
throw Fx.
Exception
.AsError(new TimeoutException());
788
throw Fx.
Exception
.AsError(this.exception);
1065
throw Fx.
Exception
.AsError(this.exception);
System\Runtime\InternalBufferManager.cs (1)
244
throw Fx.
Exception
.Argument("buffer", InternalSR.BufferIsNotRightSizeForBufferManager);
System\Runtime\Interop\UnsafeNativeMethods.cs (2)
111
throw Fx.
Exception
.AsError(new System.ComponentModel.Win32Exception(error));
124
throw Fx.
Exception
.AsError(new System.ComponentModel.Win32Exception(error));
System\Runtime\IOThreadScheduler.cs (2)
112
throw Fx.
Exception
.ArgumentNull("callback");
132
throw Fx.
Exception
.ArgumentNull("callback");
System\Runtime\IOThreadTimer.cs (2)
637
throw Fx.
Exception
.AsError(exception);
645
throw Fx.
Exception
.AsError(new Win32Exception());
System\Runtime\ReadOnlyDictionaryInternal.cs (6)
50
throw Fx.
Exception
.AsError(CreateReadOnlyException());
73
throw Fx.
Exception
.AsError(CreateReadOnlyException());
78
throw Fx.
Exception
.AsError(CreateReadOnlyException());
83
throw Fx.
Exception
.AsError(CreateReadOnlyException());
112
throw Fx.
Exception
.AsError(CreateReadOnlyException());
117
throw Fx.
Exception
.AsError(CreateReadOnlyException());
System\Runtime\SignalGate.cs (1)
86
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.InvalidSemaphoreExit));
System\Runtime\TaskExtensions.cs (8)
17
throw Fx.
Exception
.ArgumentNull("task");
22
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.SFxTaskNotStarted));
59
throw Fx.
Exception
.ArgumentNull("task");
64
throw Fx.
Exception
.AsError(new InvalidOperationException(InternalSR.SFxTaskNotStarted));
125
throw Fx.
Exception
.AsError<TException>(ex);
137
throw Fx.
Exception
.AsError<TException>(ex);
156
throw Fx.
Exception
.AsError<TException>(ex);
187
throw Fx.
Exception
.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout)));
System\Runtime\ThreadNeutralSemaphore.cs (5)
82
throw Fx.
Exception
.AsError(CreateObjectAbortedException());
143
throw Fx.
Exception
.AsError(CreateEnterTimedOutException(timeout));
158
throw Fx.
Exception
.AsError(CreateObjectAbortedException());
225
throw Fx.
Exception
.AsError(CreateObjectAbortedException());
266
throw Fx.
Exception
.AsError(new SynchronizationLockException(message));
System\Runtime\TimeoutHelper.cs (2)
156
throw Fx.
Exception
.ArgumentOutOfRange(argumentName, timeout, InternalSR.TimeoutMustBeNonNegative(argumentName, timeout));
169
throw Fx.
Exception
.ArgumentOutOfRange(argumentName, timeout, InternalSR.TimeoutMustBePositive(argumentName, timeout));
System\Runtime\TypeHelper.cs (2)
111
throw Fx.
Exception
.AsError(new InvalidCastException(InternalSR.CannotConvertObject(source, typeof(T))));
123
throw Fx.
Exception
.AsError(new InvalidCastException(InternalSR.CannotConvertObject(source, typeof(T))));
System\Runtime\UrlUtility.cs (2)
25
throw Fx.
Exception
.ArgumentNull("query");
30
throw Fx.
Exception
.ArgumentNull("encoding");