Class MessageFormatException
Thrown when a message cannot be parsed or decoded because its format is invalid or unsupported. This indicates that the wire-format or payload does not conform to the expected message schema and the client cannot construct a valid message object from the received data.
Implements
Inherited Members
Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
[Serializable]
public class MessageFormatException : AmqpException, ISerializable
Constructors
MessageFormatException()
Initializes a new instance of the MessageFormatException class.
Declaration
public MessageFormatException()
MessageFormatException(string)
Initializes a new instance of the MessageFormatException class with a specified error message.
Declaration
public MessageFormatException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
MessageFormatException(string, Exception)
Initializes a new instance of the MessageFormatException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public MessageFormatException(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. |
MessageFormatException(string, string)
Initializes a new instance of the MessageFormatException class with a specified error message and provider-specific error code.
Declaration
public MessageFormatException(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. |
MessageFormatException(string, string, Exception)
Initializes a new instance of the MessageFormatException 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 MessageFormatException(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. |