Class MessageSendingException
An exception thrown when server responds with an error response.
Implements
Namespace: TehGM.Wolfringo
Assembly: Wolfringo.Core.dll
Syntax
[Serializable]
public class MessageSendingException : Exception, ISerializable
Constructors
| Improve this Doc View SourceMessageSendingException(IWolfMessage, IWolfResponse)
Creates a new instance of the exception.
Declaration
public MessageSendingException(IWolfMessage sentMessage, IWolfResponse response)
Parameters
Type | Name | Description |
---|---|---|
IWolfMessage | sentMessage | Message sent to the server. |
IWolfResponse | response | Server's response. |
MessageSendingException(IWolfMessage, IWolfResponse, Exception)
Creates a new instance of the exception.
Declaration
public MessageSendingException(IWolfMessage sentMessage, IWolfResponse response, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
IWolfMessage | sentMessage | Message sent to the server. |
IWolfResponse | response | Server's response. |
Exception | innerException | Inner exception. |
MessageSendingException(IWolfMessage, IWolfResponse, String)
Creates a new instance of the exception.
Declaration
public MessageSendingException(IWolfMessage sentMessage, IWolfResponse response, string message)
Parameters
Type | Name | Description |
---|---|---|
IWolfMessage | sentMessage | Message sent to the server. |
IWolfResponse | response | Server's response. |
String | message | Exception message. |
MessageSendingException(IWolfMessage, IWolfResponse, String, Exception)
Creates a new instance of the exception.
Declaration
public MessageSendingException(IWolfMessage sentMessage, IWolfResponse response, string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
IWolfMessage | sentMessage | Message sent to the server. |
IWolfResponse | response | Server's response. |
String | message | Exception message. |
Exception | innerException | Inner exception. |
Properties
| Improve this Doc View SourceResponse
Server's response.
Declaration
public IWolfResponse Response { get; }
Property Value
Type | Description |
---|---|
IWolfResponse |
SentMessage
Message sent to the server.
Declaration
public IWolfMessage SentMessage { get; }
Property Value
Type | Description |
---|---|
IWolfMessage |
StatusCode
Error code of the response.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type | Description |
---|---|
HttpStatusCode |