Skip to content

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

csharp
#ctor(message)

Initializes a new instance of the RequestException class with a specified error message.

Parameters:

  • message - The message that describes the error.

#ctor

csharp
#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

csharp
#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

csharp
#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, or null if no inner exception is specified.