Class DiscoveryException
The exception that is thrown when TransportMetadataProvider<TTransportMetadata> is unable to discover an expected service.
Inheritance
Implements
Namespace: Copper.Conventions.Method.Common.V1.Exceptions
Assembly: Copper.Conventions.Method.Common.dll
Syntax
[Serializable]
public class DiscoveryException : Exception, ISerializable
Constructors
View SourceDiscoveryException()
Initializes a new instance of the DiscoveryException class.
Declaration
public DiscoveryException()
DiscoveryException(SerializationInfo, StreamingContext)
Initializes a new instance of the DiscoveryException class.
Declaration
protected DiscoveryException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo that holds the serialized object data about the exception being thrown. |
System.Runtime.Serialization.StreamingContext | context | The System.Runtime.Serialization.StreamingContext that contains contextual information about the source or destination. |
DiscoveryException(String)
Initializes a new instance of the DiscoveryException class.
Declaration
public DiscoveryException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The message that describes the error. |
DiscoveryException(String, Exception)
Initializes a new instance of the DiscoveryException class.
Declaration
public DiscoveryException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | The error message that explains the reason for the exception. |
System.Exception | innerException | The exception that is the cause of the current exception. |