67 references to AsError
System.ServiceModel.Internals (67)
System\Runtime\ActionItem.cs (3)
75
throw Fx.Exception.
AsError
(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
104
throw Fx.Exception.
AsError
(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
118
throw Fx.Exception.
AsError
(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
System\Runtime\AsyncEventArgs.cs (2)
40
throw Fx.Exception.
AsError
(new InvalidOperationException(InternalSR.AsyncEventArgsCompletionPending(GetType())));
53
throw Fx.Exception.
AsError
(new InvalidOperationException(InternalSR.AsyncEventArgsCompletedTwice(GetType())));
System\Runtime\AsyncResult.cs (8)
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));
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 (11)
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));
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 (7)
60
throw Fx.Exception.
AsError
(new KeyNotFoundException());
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 (2)
67
throw Fx.Exception.
AsError
(new KeyNotFoundException(InternalSR.KeyNotFoundInDictionary));
170
throw Fx.Exception.
AsError
(new ArgumentOutOfRangeException("arrayIndex"));
System\Runtime\Diagnostics\DiagnosticEventProvider.cs (5)
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",
System\Runtime\ExceptionTrace.cs (1)
57
return
AsError
(targetInvocationException.InnerException);
System\Runtime\Fx.cs (2)
461
throw Fx.Exception.
AsError
(
476
throw Fx.Exception.
AsError
(
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\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\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 (3)
22
throw Fx.Exception.
AsError
(new InvalidOperationException(InternalSR.SFxTaskNotStarted));
64
throw Fx.Exception.
AsError
(new InvalidOperationException(InternalSR.SFxTaskNotStarted));
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\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))));