Class MessageNotWriteableException
Thrown when an attempt is made to write to a message that is not writable. This occurs for messages that are in a read-only state or when the message content cannot be modified (for example after the message has been sent).
Implements
Inherited Members
Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
[Serializable]
public class MessageNotWriteableException : AmqpException, ISerializable
Constructors
MessageNotWriteableException()
Initializes a new instance of the MessageNotWriteableException class.
Declaration
public MessageNotWriteableException()
MessageNotWriteableException(string)
Initializes a new instance of the MessageNotWriteableException class with a specified error message.
Declaration
public MessageNotWriteableException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
MessageNotWriteableException(string, Exception)
Initializes a new instance of the MessageNotWriteableException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public MessageNotWriteableException(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. |
MessageNotWriteableException(string, string)
Initializes a new instance of the MessageNotWriteableException class with a specified error message and provider-specific error code.
Declaration
public MessageNotWriteableException(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. |
MessageNotWriteableException(string, string, Exception)
Initializes a new instance of the MessageNotWriteableException 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 MessageNotWriteableException(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. |