Class HttpClientRequestException
A client HTTP client exception.
Inheritance
System.Object
System.Exception
HttpClientRequestException
Inherited Members
System.Exception.GetBaseException()
System.Exception.Data
System.Exception.HelpLink
System.Exception.HResult
System.Exception.InnerException
System.Exception.Source
System.Exception.StackTrace
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: DocuWare.Services.Http.Client
Assembly: DocuWare.RestClient.dll
Syntax
public class HttpClientRequestException : Exception
Properties
Error
Gets the error.
Declaration
public Error Error { get; }
Property Value
Type | Description |
---|---|
Error | The error. |
HtmlError
Gets the HTML error.
Declaration
public string HtmlError { get; }
Property Value
Type | Description |
---|---|
System.String | The HTML error. |
Message
Gets a message that describes the current exception.
Declaration
public override string Message { get; }
Property Value
Type | Description |
---|---|
System.String | The error message that explains the reason for the exception, or an empty string(""). |
Overrides
System.Exception.Message
Method
Gets the method.
Declaration
public HttpMethod Method { get; }
Property Value
Type | Description |
---|---|
System.Net.Http.HttpMethod | The method. |
ReasonPhrase
Gets the reason phrase.
Declaration
public string ReasonPhrase { get; }
Property Value
Type | Description |
---|---|
System.String | The reason phrase. |
StatusCode
Gets the status code.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Type | Description |
---|---|
System.Net.HttpStatusCode | The status code. |
Uri
Gets the URI.
Declaration
public Uri Uri { get; }
Property Value
Type | Description |
---|---|
System.Uri | The URI. |
Methods
Create(HttpResponseMessage, Exception)
Creates the specified message.
Declaration
public static Task<HttpClientRequestException> Create(HttpResponseMessage message, Exception inner = null)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpResponseMessage | message | The message. |
System.Exception | inner | The inner exception. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HttpClientRequestException> | A task which creates the message. |
Create(HttpResponseMessage, String)
Creates the specified message.
Declaration
public static Task<HttpClientRequestException> Create(HttpResponseMessage message, string messageText)
Parameters
Type | Name | Description |
---|---|---|
System.Net.Http.HttpResponseMessage | message | The message. |
System.String | messageText | The message text. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<HttpClientRequestException> |
ToString()
Returns a System.String that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents this instance. |
Overrides
System.Exception.ToString()