Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Net.​Http.​HttpRequestException

Assembly: System.Net.Http

Inheritance: object → Exception → HttpRequestException

Implemented Interfaces

A base class for exceptions thrown by the <see cref="T:System.Net.Http.HttpClient" /> and <see cref="T:System.Net.Http.HttpMessageHandler" /> classes.

Properties

HttpRequestError
Gets the <see cref="T:System.Net.Http.HttpRequestError" /> that caused the exception.
public HttpStatusCode?
StatusCode
Gets the HTTP status code to be returned with the exception.
public string
HelpLink
public int
HResult
public Exception
InnerException
public string
Message
public string
Source
public string
StackTrace
TargetSite

Methods

public Exception
GetBaseException​()
Inherited from Exception
public Type
GetType​()
Inherited from Exception
public string
ToString​()
Inherited from Exception
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object