Wolfringo Wolfringo
Wolfringo Wolfringo
Wolfringo (c) 2020 TehGM
DocFX, DiscordFX theme.
Search Results for

    Class MessageSendingException

    An exception thrown when server responds with an error response.

    Inheritance
    System.Object
    System.Exception
    MessageSendingException
    Implements
    System.Runtime.Serialization.ISerializable
    Namespace: TehGM.Wolfringo
    Assembly: Wolfringo.Core.dll
    Syntax
    [Serializable]
    public class MessageSendingException : Exception, ISerializable

    Constructors

    | Improve this Doc View Source

    MessageSendingException(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.

    | Improve this Doc View Source

    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.

    System.Exception innerException

    Inner exception.

    | Improve this Doc View Source

    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.

    System.String message

    Exception message.

    | Improve this Doc View Source

    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.

    System.String message

    Exception message.

    System.Exception innerException

    Inner exception.

    Properties

    | Improve this Doc View Source

    Response

    Server's response.

    Declaration
    public IWolfResponse Response { get; }
    Property Value
    Type Description
    IWolfResponse
    | Improve this Doc View Source

    SentMessage

    Message sent to the server.

    Declaration
    public IWolfMessage SentMessage { get; }
    Property Value
    Type Description
    IWolfMessage
    | Improve this Doc View Source

    StatusCode

    Error code of the response.

    Declaration
    public HttpStatusCode StatusCode { get; }
    Property Value
    Type Description
    System.Net.HttpStatusCode

    Implements

    System.Runtime.Serialization.ISerializable

    Extension Methods

    ExceptionLoggingHelper.LogAsCritical(Exception, ILogger, String, Object[])
    ExceptionLoggingHelper.LogAsError(Exception, ILogger, String, Object[])
    ExceptionLoggingHelper.LogAsWarning(Exception, ILogger, String, Object[])
    ExceptionLoggingHelper.LogAsInformation(Exception, ILogger, String, Object[])
    ExceptionLoggingHelper.LogAsDebug(Exception, ILogger, String, Object[])
    ExceptionLoggingHelper.LogAsTrace(Exception, ILogger, String, Object[])