Class MessageEOFException
Thrown when an unexpected end-of-file or end-of-stream is encountered while reading a message. This indicates that the message payload or wire-format ended prematurely and the client could not fully deserialize the message.
Implements
Inherited Members
Namespace: CodersRealm.AmqpClient
Assembly: CodersRealm.AmqpClient.dll
Syntax
[Serializable]
public class MessageEOFException : AmqpException, ISerializable
Constructors
MessageEOFException()
Initializes a new instance of the MessageEOFException class.
Declaration
public MessageEOFException()
MessageEOFException(string)
Initializes a new instance of the MessageEOFException class with a specified error message.
Declaration
public MessageEOFException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | The message that describes the error. |
MessageEOFException(string, Exception)
Initializes a new instance of the MessageEOFException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Declaration
public MessageEOFException(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. |
MessageEOFException(string, string)
Initializes a new instance of the MessageEOFException class with a specified error message and provider-specific error code.
Declaration
public MessageEOFException(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. |
MessageEOFException(string, string, Exception)
Initializes a new instance of the MessageEOFException 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 MessageEOFException(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. |