61 references to Exception
System.ServiceModel.Http (49)
System\ServiceModel\BasicHttpsBinding.cs (1)
34
_basicHttpsSecurity = value ?? throw FxTrace.
Exception
.ArgumentNull("value");
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (5)
86
FxTrace.
Exception
.AsWarning(communicationObjectAbortedException);
134
throw FxTrace.
Exception
.AsError(new InvalidOperationException(SR.Format(SR.WebSocketInvalidProtocolNotInClientList, obtained, requested)));
259
throw FxTrace.
Exception
.AsError(new CommunicationException(SR.Format(SR.WebSocketVersionMismatchFromServer, ""), ex));
261
throw FxTrace.
Exception
.AsError(new CommunicationException(SR.Format(SR.WebSocketSubProtocolMismatchFromServer, ""), ex));
266
throw FxTrace.
Exception
.AsError(new CommunicationException(ex.Message, ex));
System\ServiceModel\Channels\HttpChannelFactory.cs (3)
526
throw FxTrace.
Exception
.AsError(new InvalidOperationException(SR.Format(
538
throw FxTrace.
Exception
.AsError(new InvalidOperationException(SR.Format(
1282
throw FxTrace.
Exception
.AsError(new InvalidOperationException(SR.Format(
System\ServiceModel\Channels\HttpsChannelFactory.cs (4)
223
FxTrace.
Exception
.AsInformation(ex);
233
FxTrace.
Exception
.AsWarning(ex);
254
FxTrace.
Exception
.AsInformation(ex);
264
FxTrace.
Exception
.AsWarning(ex);
System\ServiceModel\Channels\WebSocketHelper.cs (11)
140
FxTrace.
Exception
.AsWarning(communicationObjectAbortedException);
147
Exception exception = FxTrace.
Exception
.AsError<OperationCanceledException>(aggregationException);
152
FxTrace.
Exception
.AsWarning(timeoutException);
160
FxTrace.
Exception
.AsWarning(communicationException);
165
return FxTrace.
Exception
.AsError(communicationException);
170
return FxTrace.
Exception
.AsError(ex);
177
Exception exception = FxTrace.
Exception
.AsError<Exception>(ex);
192
throw FxTrace.
Exception
.AsError<CommunicationException>(task.Exception);
196
throw FxTrace.
Exception
.AsError(GetTimeoutException(null, timeout, operation));
205
return FxTrace.
Exception
.AsError<CommunicationException>(task.Exception);
209
throw FxTrace.
Exception
.AsError(GetTimeoutException(null, timeout, operation));
System\ServiceModel\Channels\WebSocketTransportDuplexSessionChannel.cs (15)
296
FxTrace.
Exception
.TraceUnhandledException(ex);
332
throw FxTrace.
Exception
.AsError(exceptionToThrow);
507
throw FxTrace.
Exception
.AsError(new TimeoutException(
564
_pendingException = FxTrace.
Exception
.AsError(new QuotaExceededException(SR.Format(SR.MaxReceivedMessageSizeExceeded, _maxBufferSize)));
701
throw FxTrace.
Exception
.AsError(new InvalidOperationException());
933
get { throw FxTrace.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported)); }
940
throw FxTrace.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
945
throw FxTrace.
Exception
.AsError(new NotSupportedException(InternalSR.SeekNotSupported));
996
throw FxTrace.
Exception
.AsError(WebSocketHelper.GetTimeoutException(null,
1075
throw FxTrace.
Exception
.AsError(new NotSupportedException("this method should never get called"));
1080
throw FxTrace.
Exception
.AsError(new NotSupportedException());
1085
throw FxTrace.
Exception
.AsError(new NotSupportedException());
1092
throw FxTrace.
Exception
.AsError(new NotSupportedException("this method should never get called"));
1099
throw FxTrace.
Exception
.AsError(new InvalidOperationException(SR.WebSocketStreamWriteCalledAfterEOMSent));
1215
throw FxTrace.
Exception
.AsError(new ProtocolException(SR.WebSocketUnexpectedCloseMessageError));
System\ServiceModel\Channels\WebSocketTransportSettings.cs (3)
100
throw FxTrace.
Exception
.Argument("value", SR.WebSocketInvalidProtocolEmptySubprotocolString);
105
throw FxTrace.
Exception
.Argument("value", SR.Format(SR.WebSocketInvalidProtocolContainsMultipleSubProtocolString, value));
111
throw FxTrace.
Exception
.Argument("value", SR.Format(SR.WebSocketInvalidProtocolInvalidCharInProtocolString, value, invalidChar));
System\ServiceModel\HttpBindingBase.cs (1)
136
throw FxTrace.
Exception
.ArgumentNull("value");
System\ServiceModel\NetHttpBinding.cs (3)
54
_basicHttpSecurity = value ?? throw FxTrace.
Exception
.ArgumentNull(nameof(value));
69
throw FxTrace.
Exception
.ArgumentNull(nameof(value));
98
throw FxTrace.
Exception
.AsError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
System\ServiceModel\NetHttpsBinding.cs (3)
47
_basicHttpsSecurity = value ?? throw FxTrace.
Exception
.ArgumentNull(nameof(value));
69
throw FxTrace.
Exception
.ArgumentNull(nameof(value));
90
throw FxTrace.
Exception
.AsError(new InvalidOperationException(SR.Format(SR.HttpClientCredentialTypeInvalid, BasicHttpSecurity.Transport.ClientCredentialType)));
System.ServiceModel.Primitives (12)
SMDiagnostics\DiagnosticUtility.cs (1)
54
FxTrace.
Exception
.TraceHandledException(exception, traceEventType);
SMDiagnostics\System\ServiceModel\Diagnostics\ExceptionUtility.cs (2)
135
FxTrace.
Exception
.TraceEtwException(exception, eventLevel);
146
FxTrace.
Exception
.TraceEtwException(exception, eventType);
System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
830
throw FxTrace.
Exception
.AsError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedContentType, contentType, ContentType)));
849
throw FxTrace.
Exception
.AsError(new ProtocolException(SRP.Format(SRP.EncoderUnrecognizedContentType, contentType, ContentType)));
System\ServiceModel\Channels\BinaryMessageEncodingBindingElement.cs (1)
161
throw FxTrace.
Exception
.AsError(new NotSupportedException(SRP.Format(
System\ServiceModel\Dispatcher\TaskMethodInvoker.cs (2)
98
throw FxTrace.
Exception
.AsError<FaultException>(ae);
107
throw FxTrace.
Exception
.AsError(new TaskCanceledException(task));
System\ServiceModel\Security\WSSecurityTokenSerializer.cs (4)
286
throw FxTrace.
Exception
.AsError(new MessageSecurityException(ex.Message));
303
throw FxTrace.
Exception
.AsError(new MessageSecurityException(ex.Message));
320
throw FxTrace.
Exception
.AsError(new MessageSecurityException(ex.Message));
337
throw FxTrace.
Exception
.AsError(new MessageSecurityException(ex.Message));