Show / Hide Table of Contents

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 Source

RestClientHttpException(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 Source

Method

Method of origin http request (DELETE, GET, PATCH, POST, PUT)

Declaration
public HttpMethod Method { get; }
Property Value
Type Description
HttpMethod
| Improve this Doc View Source

StatusCode

Http Response status code of failed http request

Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type Description
System.Net.HttpStatusCode
| Improve this Doc View Source

Url

Url of origin http request

Declaration
public string Url { get; }
Property Value
Type Description
System.String
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX