Class RestClientHttpException
Exception returned with failed http requests and operations within IRestClient
Inheritance
System.Object
RestClientHttpException
Namespace: BlazorFocused
Assembly: BlazorFocused.Client.dll
Syntax
public class RestClientHttpException : Exception
Constructors
| Improve this Doc View SourceRestClientHttpException(HttpMethod, HttpStatusCode, String)
Initializes a new instance of RestClientHttpException with the Http Request information that caused the exception.
Declaration
public RestClientHttpException(HttpMethod httpMethod, HttpStatusCode httpStatusCode, string url)
Parameters
Type | Name | Description |
---|---|---|
HttpMethod | httpMethod | Http method of request that caused exception |
System.Net.HttpStatusCode | httpStatusCode | Status code of the response from failed request |
System.String | url | Url of request that caused exception |
Properties
| Improve this Doc View SourceMethod
Method of origin http request (DELETE, GET, PATCH, POST, PUT)
Declaration
public HttpMethod Method { get; }
Property Value
Type | Description |
---|---|
HttpMethod |
StatusCode
Http Response status code of failed http request
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type | Description |
---|---|
System.Net.HttpStatusCode |
Url
Url of origin http request
Declaration
public string Url { get; }
Property Value
Type | Description |
---|---|
System.String |