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
| Type | Description |
|---|---|
| Error | The error. |
HtmlError
Gets the HTML error.
public string HtmlError { get; }
Property Value
| Type | Description |
|---|---|
| String | The HTML error. |
Message
Gets a message that describes the current exception.
public override string Message { get; }
Property Value
| Type | Description |
|---|---|
| String | The error message that explains the reason for the exception, or an empty string(""). |
Overrides
Method
Gets the method.
public HttpMethod Method { get; }
Property Value
| Type | Description |
|---|---|
| HttpMethod | The method. |
ReasonPhrase
Gets the reason phrase.
public string ReasonPhrase { get; }
Property Value
| Type | Description |
|---|---|
| String | The reason phrase. |
StatusCode
Gets the status code.
public HttpStatusCode StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| HttpStatusCode | The status code. |
Uri
Gets the URI.
public Uri Uri { get; }
Property Value
| Type | Description |
|---|---|
| Uri | The URI. |
Methods
Create(HttpResponseMessage, Exception)
Creates the specified message.
public static Task<HttpClientRequestException> Create(HttpResponseMessage message, Exception inner = null)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpResponseMessage | message | The message. |
| Exception | inner | The inner exception. |
Returns
| Type | Description |
|---|---|
| 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
| Type | Name | Description |
|---|---|---|
| HttpResponseMessage | message | The message. |
| String | messageText | The message text. |
Returns
| Type | Description |
|---|---|
| Task<HttpClientRequestException> |
ToString()
Returns a String that represents this instance.
public override string ToString()
Returns
| Type | Description |
|---|---|
| String | A String that represents this instance. |