<PackageReference Include="Refit" Version="15.2.0" />

Refit.ApiExceptionBase

public abstract class ApiExceptionBase : Exception
Represents an error that occurred while sending an API request.
namespace Refit { public abstract class ApiExceptionBase : Exception { public HttpMethod HttpMethod { get; } public Uri Uri { get; } public HttpRequestMessage RequestMessage { get; } public string RequestContent { get; set; } public bool HasRequestContent { get; } public RefitSettings RefitSettings { get; } protected ApiExceptionBase(HttpRequestMessage message, HttpMethod httpMethod, RefitSettings refitSettings, Exception innerException); protected ApiExceptionBase(string exceptionMessage, HttpRequestMessage message, HttpMethod httpMethod, RefitSettings refitSettings); protected ApiExceptionBase(string exceptionMessage, HttpRequestMessage message, HttpMethod httpMethod, RefitSettings refitSettings, Exception innerException); } }