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