Class InvalidDestinationException
Thrown when an operation references a destination that is invalid for the requested action. Examples include non-existent destinations, destinations of the wrong type, or destinations with malformed names.
Implements
Inherited Members
Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
[Serializable]
public class InvalidDestinationException : AmqpException, ISerializable
Constructors
InvalidDestinationException()
Initializes a new instance of the InvalidDestinationException class.
Declaration
public InvalidDestinationException()
InvalidDestinationException(string)
Initializes a new instance of the InvalidDestinationException class with a specified error message.
Declaration
public InvalidDestinationException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
InvalidDestinationException(string, Exception)
Initializes a new instance of the InvalidDestinationException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public InvalidDestinationException(string message, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
| Exception | innerException | The exception that is the cause of the current exception. |
InvalidDestinationException(string, string)
Initializes a new instance of the InvalidDestinationException class with a specified error message and provider-specific error code.
Declaration
public InvalidDestinationException(string message, string errorCode)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
| string | errorCode | A provider-specific error code associated with the exception. |
InvalidDestinationException(string, string, Exception)
Initializes a new instance of the InvalidDestinationException class with a specified error message, provider-specific error code, and a reference to the inner exception that is the cause of this exception.
Declaration
public InvalidDestinationException(string message, string errorCode, Exception innerException)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
| string | errorCode | A provider-specific error code associated with the exception. |
| Exception | innerException | The exception that is the cause of the current exception. |