Refit.ApiExceptionBase
Represents an error that occurred while sending an API request.
Gets a value indicating whether the captured request content is available.
Gets the HTTP method used to send the request.
Gets the Refit settings used to send the request.
Gets or sets the request body content as a string, captured before sending. This is only populated when
CaptureRequestContent is enabled; otherwise the request content has
already been disposed by HttpClient and cannot be read from RequestMessage.
Gets the HTTP Request message used to send the request.
Gets the Uri used to send the HTTP request.
protected ApiExceptionBase(HttpRequestMessage message, HttpMethod httpMethod, RefitSettings refitSettings, Exception innerException)
Initializes a new instance of the ApiExceptionBase class.
protected ApiExceptionBase(string exceptionMessage, HttpRequestMessage message, HttpMethod httpMethod, RefitSettings refitSettings)
Initializes a new instance of the ApiExceptionBase class with a custom exception message.
protected ApiExceptionBase(string exceptionMessage, HttpRequestMessage message, HttpMethod httpMethod, RefitSettings refitSettings, Exception innerException)
Initializes a new instance of the ApiExceptionBase class with a custom exception message.