85 references to AsError
dotnet-svcutil-lib (85)
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ActionItem.cs (1)
55throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.ActionItemIsAlreadyScheduled));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\AsyncResult.cs (8)
116throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncResultCompletedTwice(GetType()))); 180throw Fx.Exception.AsError(new CallbackException(InternalSR.AsyncCallbackThrewException, e)); 196throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult)); 293throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidNullAsyncResult)); 326throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidAsyncResultImplementation(result.GetType()))); 338throw Fx.Exception.AsError(new InvalidOperationException(message)); 359throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.AsyncResultAlreadyEnded)); 377throw Fx.Exception.AsError(asyncResult._exception);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\BufferedOutputStream.cs (9)
82throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 86throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 160throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 165throw Fx.Exception.AsError(new NotSupportedException(InternalSR.ReadNotSupported)); 170throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 175throw Fx.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 243throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSizeQuota)); 249throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSizeQuota)); 283throw Fx.Exception.AsError(CreateQuotaExceededException(_maxSize));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\ExceptionTrace.cs (1)
54return AsError(targetInvocationException.InnerException);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\Fx.cs (2)
349Fx.Exception.AsError(exception); 365Fx.Exception.AsError(exception);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\InputQueue.cs (4)
152throw Fx.Exception.AsError(new TimeoutException(InternalSR.TimeoutInputQueueDequeue(timeout))); 291throw Fx.Exception.AsError(new TimeoutException()); 787throw Fx.Exception.AsError(_exception); 1062throw Fx.Exception.AsError(_exception);
FrameworkFork\System.ServiceModel\Internals\System\Runtime\SignalGate.cs (1)
85throw Fx.Exception.AsError(new InvalidOperationException(InternalSR.InvalidSemaphoreExit));
FrameworkFork\System.ServiceModel\Internals\System\Runtime\TaskHelpers.cs (1)
233throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout)));
FrameworkFork\System.ServiceModel\SMDiagnostics\DiagnosticUtility.cs (1)
74throw Fx.Exception.AsError(new InvalidOperationException());
FrameworkFork\System.ServiceModel\System\IdentityModel\Selectors\SecurityTokenProvider.cs (4)
31throw Fx.Exception.AsError(new SecurityTokenException(string.Format(SRServiceModel.TokenProviderUnableToGetToken, this))); 45throw Fx.Exception.AsError(new SecurityTokenException(string.Format(SRServiceModel.TokenProviderUnableToRenewToken, this))); 64throw Fx.Exception.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenRenewalNotSupported, this))); 69throw Fx.Exception.AsError(new NotSupportedException(string.Format(SRServiceModel.TokenCancellationNotSupported, this)));
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyType.cs (1)
30throw Fx.Exception.AsError(new InvalidEnumArgumentException("value", (int)value,
FrameworkFork\System.ServiceModel\System\IdentityModel\Tokens\SecurityKeyUsage.cs (1)
28throw Fx.Exception.AsError(new InvalidEnumArgumentException("value", (int)value,
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
832throw FxTrace.Exception.AsError(new ProtocolException(string.Format(SRServiceModel.EncoderUnrecognizedContentType, contentType, this.ContentType))); 851throw FxTrace.Exception.AsError(new ProtocolException(string.Format(SRServiceModel.EncoderUnrecognizedContentType, contentType, this.ContentType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (1)
173throw FxTrace.Exception.AsError(new NotSupportedException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (7)
159throw FxTrace.Exception.AsError(new CommunicationException(string.Format(SRServiceModel.WebSocketVersionMismatchFromServer, ""), ex)); 161throw FxTrace.Exception.AsError(new CommunicationException(string.Format(SRServiceModel.WebSocketSubProtocolMismatchFromServer, ""), ex)); 166throw FxTrace.Exception.AsError(new CommunicationException(ex.Message, ex)); 224throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_CreateWebSocketFailed, _connectionFactory.GetType().Name), e)); 230throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_InvalidWebSocket, _connectionFactory.GetType().Name))); 236throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_InvalidWebSocket, _connectionFactory.GetType().Name))); 244throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.ClientWebSocketFactory_InvalidSubProtocol, _connectionFactory.GetType().Name, obtained, requested)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (3)
443throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format( 455throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format( 1167throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpMessageHandlerFactory.cs (1)
172throw FxTrace.Exception.AsError(targetInvocationException);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpRequestMessageExtensionMethods.cs (1)
38throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpsTransportBindingElement.cs (1)
98throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpPipelineNotSupportedOnClientSide, "MessageHandlerFactory")));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (1)
468throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpPipelineNotSupportedOnClientSide, "MessageHandlerFactory")));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (4)
166return FxTrace.Exception.AsError(communicationException); 171return FxTrace.Exception.AsError(ex); 197throw FxTrace.Exception.AsError(GetTimeoutException(null, timeout, operation)); 210throw FxTrace.Exception.AsError(GetTimeoutException(null, timeout, operation));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (19)
151throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(timeout))); 353throw FxTrace.Exception.AsError(exceptionToThrow); 523throw FxTrace.Exception.AsError(new TimeoutException( 546throw FxTrace.Exception.AsError(new TimeoutException( 592_pendingException = FxTrace.Exception.AsError(new QuotaExceededException(string.Format(SRServiceModel.MaxReceivedMessageSizeExceeded, _maxBufferSize))); 729throw FxTrace.Exception.AsError(new InvalidOperationException()); 961get { throw FxTrace.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); } 968throw FxTrace.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 973throw FxTrace.Exception.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); 1024throw FxTrace.Exception.AsError(WebSocketHelper.GetTimeoutException(null, 1071throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(new TimeSpan(ReadTimeout)))); 1103throw FxTrace.Exception.AsError(new NotSupportedException("this method should never get called")); 1108throw FxTrace.Exception.AsError(new NotSupportedException()); 1113throw FxTrace.Exception.AsError(new NotSupportedException()); 1120throw FxTrace.Exception.AsError(new NotSupportedException("this method should never get called")); 1127throw FxTrace.Exception.AsError(new InvalidOperationException(SRServiceModel.WebSocketStreamWriteCalledAfterEOMSent)); 1151throw Fx.Exception.AsError(new TimeoutException(InternalSR.TaskTimedOutError(new TimeSpan(WriteTimeout)))); 1225throw Fx.Exception.AsError( 1243throw FxTrace.Exception.AsError(new ProtocolException(SRServiceModel.WebSocketUnexpectedCloseMessageError));
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (1)
112throw FxTrace.Exception.AsError(new TaskCanceledException(task));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpBinding.cs (1)
118throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, this.BasicHttpSecurity.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\NetHttpsBinding.cs (1)
75throw FxTrace.Exception.AsError(new InvalidOperationException(string.Format(SRServiceModel.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\WSSecurityTokenSerializer.cs (8)
271throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message)); 283throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message)); 295throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message)); 307throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message)); 319throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message)); 331throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message)); 343throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message)); 355throw FxTrace.Exception.AsError(new MessageSecurityException(ex.Message));