43 references to AsError
System.ServiceModel.Primitives (43)
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 (8)
94throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncResultCompletedTwice(GetType()))); 156throw Fx.Exception.AsError(new CallbackException(InternalSR.AsyncCallbackThrewException, e)); 171throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult)); 268throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult)); 301throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidAsyncResultImplementation(result.GetType()))); 313throw Fx.Exception.AsError(new InvalidOperationException(message)); 334throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncResultAlreadyEnded)); 352ExceptionDispatchInfo.Capture(Fx.Exception.AsError(asyncResult._exception)).Throw();
Internals\System\Runtime\BufferedOutputStream.cs (11)
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)); 269throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSizeQuota)); 275throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSizeQuota)); 309throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSize));
Internals\System\Runtime\ExceptionTrace.cs (1)
113return AsError(targetInvocationException.InnerException);
Internals\System\Runtime\Fx.cs (2)
366throw Exception.AsError( 381throw Fx.Exception.AsError(
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\SignalGate.cs (1)
86throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidSemaphoreExit));
Internals\System\Runtime\TaskHelpers.cs (1)
345throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout)));
System\IdentityModel\Selectors\SecurityTokenProvider.cs (2)
65throw Fx.Exception.AsError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToGetToken, this))); 150throw Fx.Exception.AsError(new SecurityTokenException(SRP.Format(SRP.TokenProviderUnableToRenewToken, this)));
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\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
830throw FxTrace.Exception.AsError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedContentType, contentType, ContentType))); 849throw FxTrace.Exception.AsError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedContentType, contentType, ContentType)));
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (1)
161throw FxTrace.Exception.AsError(new NotSupportedException(SRP.Format(
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
107throw FxTrace.Exception.AsError(new TaskCanceledException(task));
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
286throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message)); 303throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message)); 320throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message)); 337throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message));