RequestException
Namespace: Signal.Bot.Exceptions
Full Name: Signal.Bot.Exceptions.RequestException
Summary
Represents errors that occur during Signal Bot API requests, optionally including HTTP status code information.
Properties
HttpStatusCode
Gets the HTTP status code associated with the failed request, if available.
Methods
#ctor
#ctor(message)Initializes a new instance of the RequestException class with a specified error message.
Parameters:
message- The message that describes the error.
#ctor
#ctor(message, innerException)Initializes a new instance of the RequestException class with a specified error message and a reference to the inner exception that is the cause of this exception.
Parameters:
message- The message that describes the error.innerException- The exception that is the cause of the current exception.
#ctor
#ctor(message, httpStatusCode)Initializes a new instance of the RequestException class with a specified error message and HTTP status code.
Parameters:
message- The message that describes the error.httpStatusCode- The HTTP status code of the failed request.
#ctor
#ctor(message, httpStatusCode, innerException)Initializes a new instance of the RequestException class with a specified error message, HTTP status code, and a reference to the inner exception that is the cause of this exception.
Parameters:
message- The message that describes the error.httpStatusCode- The HTTP status code of the failed request.innerException- The exception that is the cause of the current exception, ornullif no inner exception is specified.
