13 types derived from CommunicationException
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\AddressAccessDeniedException.cs (1)
9public class AddressAccessDeniedException : CommunicationException
System.ServiceModel.Primitives (12)
netstandard.cs (12)
417public partial class ActionNotSupportedException : System.ServiceModel.CommunicationException 465public partial class ChannelTerminatedException : System.ServiceModel.CommunicationException 586public partial class CommunicationObjectAbortedException : System.ServiceModel.CommunicationException 593public partial class CommunicationObjectFaultedException : System.ServiceModel.CommunicationException 665public partial class EndpointNotFoundException : System.ServiceModel.CommunicationException 732public partial class FaultException : System.ServiceModel.CommunicationException 978public partial class ProtocolException : System.ServiceModel.CommunicationException 1017public partial class ServerTooBusyException : System.ServiceModel.CommunicationException 1023public partial class ServiceActivationException : System.ServiceModel.CommunicationException 2255public partial class MessageSecurityException : System.ServiceModel.CommunicationException 2261public partial class SecurityAccessDeniedException : System.ServiceModel.CommunicationException 2272public partial class SecurityNegotiationException : System.ServiceModel.CommunicationException
19 instantiations of CommunicationException
System.ServiceModel.Federation (1)
System\Runtime\OperationWithTimeoutAsyncResult.cs (1)
194throw new CommunicationException(InternalSR.AsyncCallbackThrewException, e);
System.ServiceModel.NetFramingBase (6)
System\ServiceModel\Channels\Connection.cs (2)
356return new CommunicationException(ioException.InnerException.Message, ioException); 360return new CommunicationException(SR.StreamError, ioException);
System\ServiceModel\Channels\FramingDecoders.cs (4)
284return new CommunicationException(SR.Format(SR.Sharing_ConnectionDispatchFailed, via)); 293return new CommunicationException(inner.Message, inner); 306return new CommunicationException(inner.Message, inner); 311return new CommunicationException(inner.Message, inner);
System.ServiceModel.NetNamedPipe (3)
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.Primitives.Tests (3)
ServiceModel\ChannelFactoryTest.cs (1)
309customBinding.Elements.Insert(0, new ThrowingOnCloseBindingElement(new CommunicationException(nameof(ChannelFactory_AsyncDisposable_NoThrow)), false));
ServiceModel\ClientBaseTest.cs (1)
199customBinding.Elements.Insert(0, new ThrowingOnCloseBindingElement(new CommunicationException(nameof(ClientBaseDisposeAsyncNoThrow)), channelThrows));
ServiceModel\ThrowingOnCloseBindingElement.cs (1)
18_exception = new CommunicationException("Unspecified communication exception");
System.ServiceModel.UnixDomainSocket (6)
System\ServiceModel\Channels\SocketConnection.cs (6)
341new CommunicationException(SR.Format(SR.SocketCloseReadReceivedData, _socket.RemoteEndPoint))); 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);
33 references to CommunicationException
Binding.ReliableSession.IntegrationTests (2)
NetHttpBindingTests.cs (1)
244await Assert.ThrowsAsync<CommunicationException>(() => resultTask);
WSHttpBindingTests.cs (1)
244await Assert.ThrowsAsync<CommunicationException>(() => resultTask);
Binding.UDS.IntegrationTests (1)
ServiceHelper.cs (1)
114catch (System.ServiceModel.CommunicationException)
Client.ClientBase.IntegrationTests (5)
SessionTests.cs (5)
192catch(CommunicationException) 356ResultsVerificationHelper<CommunicationException>( 384ResultsVerificationHelper<CommunicationException>(canMakeServiceCall: false, cbClosedCalled: false, cbClosingCalled: false, cbFaultedCalled: false); 441Assert.Throws<CommunicationException>(() => 474Assert.True(e is CommunicationException);
Client.ExpectedExceptions.IntegrationTests (5)
ExpectedExceptionTests.4.1.0.cs (5)
130CommunicationException exception = Assert.Throws<CommunicationException>(() => 356catch (CommunicationException exception) 398catch (CommunicationException exception) 445catch (CommunicationException exception)
Infrastructure.Common (1)
ServiceUtilHelper.cs (1)
445catch (CommunicationException)
ScenarioTests.Common.Tests (1)
ScenarioTestHelpers.cs (1)
209catch (CommunicationException)
Security.TransportSecurity.IntegrationTests (8)
Https\HttpsTests.4.1.1.cs (2)
82CommunicationException communicationException = null; 103catch (CommunicationException ce)
Tcp\ClientCredentialTypeCertificateCanonicalNameTests.4.1.0.cs (4)
69catch (Exception exception) when (exception is CommunicationException || exception is MessageSecurityException) 71if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException")) 145catch (Exception exception) when (exception is CommunicationException || exception is MessageSecurityException) 147if ((exception is MessageSecurityException) || (exception is CommunicationException) && !string.Equals(exception.InnerException.GetType().ToString(), "System.ServiceModel.Security.MessageSecurityException"))
Tcp\ClientCredentialTypeTests.4.1.1.cs (2)
81CommunicationException communicationException = null; 102catch (CommunicationException ce)
System.ServiceModel (1)
netstandard.cs (1)
104[assembly: TypeForwardedTo(typeof(CommunicationException))]
System.ServiceModel.NetFramingBase (6)
System\ServiceModel\Channels\Connection.cs (1)
354else if (ioException.InnerException is CommunicationException)
System\ServiceModel\Channels\ConnectionPool.cs (1)
179catch (CommunicationException)
System\ServiceModel\Channels\ConnectionPoolHelper.cs (2)
75catch (CommunicationException) 210catch (CommunicationException /*e*/)
System\ServiceModel\Channels\ConnectionUtilities.cs (1)
21catch (CommunicationException)
System\ServiceModel\Security\SecurityUtilsEx.cs (1)
74catch (CommunicationException)
System.ServiceModel.NetNamedPipe (1)
System\ServiceModel\Channels\PipeConnection.cs (1)
320catch (CommunicationException e)
System.ServiceModel.UnixDomainSocket (2)
System\ServiceModel\Channels\SocketConnection.cs (2)
677CommunicationException communicationException = new CommunicationException(SR.Format(SR.UDSConnectionResetError, timeout), originalException); 694CommunicationException communicationException = new CommunicationException(SR.Format(SR.UDSTransferError, socketException.ErrorCode, socketException.Message), originalException);