Table of Contents

Class HttpClientRequestException

Namespace
DocuWare.Services.Http.Client
Assembly
DocuWare.RestClient.dll

A client HTTP client exception.

public class HttpClientRequestException : Exception
Inheritance
HttpClientRequestException
Inherited Members
Extension Methods

Properties

Error

Gets the error.

public Error Error { get; }

Property Value

TypeDescription
Error

The error.

HtmlError

Gets the HTML error.

public string HtmlError { get; }

Property Value

TypeDescription
String

The HTML error.

Message

Gets a message that describes the current exception.

public override string Message { get; }

Property Value

TypeDescription
String

The error message that explains the reason for the exception, or an empty string("").

Overrides

Exception.Message

Method

Gets the method.

public HttpMethod Method { get; }

Property Value

TypeDescription
HttpMethod

The method.

ReasonPhrase

Gets the reason phrase.

public string ReasonPhrase { get; }

Property Value

TypeDescription
String

The reason phrase.

StatusCode

Gets the status code.

public HttpStatusCode StatusCode { get; }

Property Value

TypeDescription
HttpStatusCode

The status code.

Uri

Gets the URI.

public Uri Uri { get; }

Property Value

TypeDescription
Uri

The URI.

Methods

Create(HttpResponseMessage, Exception)

Creates the specified message.

public static Task<HttpClientRequestException> Create(HttpResponseMessage message, Exception inner = null)

Parameters

TypeNameDescription
HttpResponseMessagemessage

The message.

Exceptioninner

The inner exception.

Returns

TypeDescription
Task<HttpClientRequestException>

A task which creates the message.

Create(HttpResponseMessage, String)

Creates the specified message.

public static Task<HttpClientRequestException> Create(HttpResponseMessage message, string messageText)

Parameters

TypeNameDescription
HttpResponseMessagemessage

The message.

StringmessageText

The message text.

Returns

TypeDescription
Task<HttpClientRequestException>

ToString()

Returns a String that represents this instance.

public override string ToString()

Returns

TypeDescription
String

A String that represents this instance.

Overrides

Exception.ToString()