74 references to CommunicationException
System.ServiceModel.Http (8)
System\ServiceModel\Channels\ClientWebSocketTransportDuplexSessionChannel.cs (3)
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\HttpChannelHelpers.cs (3)
113
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(requestException.Message, requestException));
149
return new
CommunicationException
(SR.Format(SR.HttpReceiveFailure, request.RequestUri), exception);
159
return new
CommunicationException
(exception.Message, exception);
System\ServiceModel\Channels\HttpResponseMessageHelper.cs (1)
269
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(message, inner));
System\ServiceModel\Channels\WebSocketHelper.cs (1)
185
return new
CommunicationException
(exception.Message, exception);
System.ServiceModel.NetFramingBase (5)
System\ServiceModel\Channels\Connection.cs (2)
356
return new
CommunicationException
(ioException.InnerException.Message, ioException);
360
return new
CommunicationException
(SR.StreamError, ioException);
System\ServiceModel\Channels\FramingDecoders.cs (3)
293
return new
CommunicationException
(inner.Message, inner);
306
return new
CommunicationException
(inner.Message, inner);
311
return new
CommunicationException
(inner.Message, inner);
System.ServiceModel.NetNamedPipe (4)
System\ServiceModel\AddressAccessDeniedException.cs (1)
13
public AddressAccessDeniedException(string message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\Channels\PipeConnection.cs (2)
101
return new
CommunicationException
(_timeoutErrorString, pipeException);
110
return new
CommunicationException
(exceptionMessage, pipeException);
System\ServiceModel\Channels\PipeConnectionInitiator.cs (1)
33
return new
CommunicationException
(
System.ServiceModel.NetTcp (5)
System\ServiceModel\Channels\SocketConnection.cs (5)
715
CommunicationException communicationException = new
CommunicationException
(SR.Format(SR.TcpConnectionResetError, timeout), originalException);
732
CommunicationException communicationException = new
CommunicationException
(SR.Format(SR.TcpTransferError, socketException.ErrorCode, socketException.Message), originalException);
752
return new
CommunicationException
(timeoutErrorString, originalException);
865
return new
CommunicationException
(SR.Format(SR.TcpConnectError, remoteUri.AbsoluteUri, (int)socketException.SocketErrorCode, socketException.Message), innerException);
869
return new
CommunicationException
(SR.Format(SR.TcpConnectErrorWithTimeSpan, remoteUri.AbsoluteUri, (int)socketException.SocketErrorCode, socketException.Message, timeSpent), innerException);
System.ServiceModel.Primitives (47)
System\ServiceModel\ActionNotSupportedException.cs (1)
16
public ActionNotSupportedException(string message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\Channels\BinaryMessageEncoder.cs (1)
465
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(message, inner));
System\ServiceModel\Channels\ClientReliableDuplexSessionChannel.cs (2)
706
exception = new
CommunicationException
(SRP.EarlySecurityFaulted, exception);
836
ReliableSession.OnLocalFault(new
CommunicationException
(SRP.MaximumRetryCountExceeded, _maxRetryCountException),
System\ServiceModel\Channels\MaxMessageSizeStream.cs (2)
94
return new
CommunicationException
(message, inner);
107
return new
CommunicationException
(message, inner);
System\ServiceModel\Channels\Message.cs (3)
1353
new
CommunicationException
(versionMismatchException.Message, versionMismatchException),
1581
new
CommunicationException
(versionMismatchException.Message, versionMismatchException),
2006
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(message, inner));
System\ServiceModel\Channels\MessageFault.cs (3)
110
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
115
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
120
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
System\ServiceModel\Channels\MtomMessageEncoder.cs (4)
219
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
224
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
649
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
654
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (1)
882
new
CommunicationException
(exception.Message, exception));
System\ServiceModel\Channels\ReliableOutputSessionChannel.cs (2)
234
exception = new
CommunicationException
(SRP.EarlySecurityFaulted, exception);
287
_session.OnLocalFault(new
CommunicationException
(SRP.MaximumRetryCountExceeded, _maxRetryCountException),
System\ServiceModel\Channels\ReliableRequestSessionChannel.cs (2)
243
exception = new
CommunicationException
(SRP.EarlySecurityFaulted, exception);
285
session.OnLocalFault(new
CommunicationException
(SRP.MaximumRetryCountExceeded, maxRetryCountException),
System\ServiceModel\ChannelTerminatedException.cs (1)
14
public ChannelTerminatedException(string message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\CommunicationObjectAbortedException.cs (1)
14
public CommunicationObjectAbortedException(string message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\CommunicationObjectFaultedException.cs (1)
14
public CommunicationObjectFaultedException(string message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\Dispatcher\DataContractSerializerOperationFormatter.cs (1)
295
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
System\ServiceModel\Dispatcher\OperationFormatter.cs (4)
150
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
155
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
160
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
230
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
System\ServiceModel\Dispatcher\PrimitiveOperationFormatter.cs (4)
505
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
510
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
515
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
567
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (4)
139
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
271
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
363
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
480
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(
System\ServiceModel\EndpointNotFoundException.cs (1)
14
public EndpointNotFoundException(string message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\FaultException.cs (2)
67
:
base
(reason, innerException)
83
:
base
(GetSafeReasonText(reason), innerException)
System\ServiceModel\ProtocolException.cs (1)
16
public ProtocolException(string message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\Security\MessageSecurityException.cs (1)
14
public MessageSecurityException(string message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\Security\SecurityAccessDeniedException.cs (1)
13
public SecurityAccessDeniedException(string message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\Security\SecurityNegotiationException.cs (1)
14
public SecurityNegotiationException(String message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\Security\TimeBoundedCache.cs (1)
399
throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new
CommunicationException
(message, inner));
System\ServiceModel\ServerTooBusyException.cs (1)
15
public ServerTooBusyException(string message, Exception innerException) :
base
(message, innerException) { }
System\ServiceModel\ServiceActivationException.cs (1)
14
public ServiceActivationException(string message, Exception innerException) :
base
(message, innerException) { }
System.ServiceModel.UnixDomainSocket (5)
System\ServiceModel\Channels\SocketConnection.cs (5)
677
CommunicationException communicationException = new
CommunicationException
(SR.Format(SR.UDSConnectionResetError, timeout), originalException);
694
CommunicationException communicationException = new
CommunicationException
(SR.Format(SR.UDSTransferError, socketException.ErrorCode, socketException.Message), originalException);
714
return new
CommunicationException
(timeoutErrorString, originalException);
828
return new
CommunicationException
(SR.Format(SR.UDSConnectError, remoteUri.AbsoluteUri, (int)socketException.SocketErrorCode, socketException.Message), innerException);
832
return new
CommunicationException
(SR.Format(SR.UDSConnectErrorWithTimeSpan, remoteUri.AbsoluteUri, (int)socketException.SocketErrorCode, socketException.Message, timeSpent), innerException);