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