Class HttpRequestException
A base class for exceptions thrown by the HttpClient and HttpMessageHandler classes.
Inherited Members
Namespace: System.Net.Http
Assembly: System.Net.Http.dll
Syntax
public class HttpRequestException : Exception
Constructors
HttpRequestException()
Initializes a new instance of the HttpRequestException class.
Declaration
public HttpRequestException()
HttpRequestException(string, Exception)
Initializes a new instance of the HttpRequestException class.
Declaration
public HttpRequestException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
string | message | A message that describes the current exception. |
Exception | inner | The inner exception. |
HttpRequestException(string)
Initializes a new instance of the HttpRequestException class.
Declaration
public HttpRequestException(string message)
Parameters
Type | Name | Description |
---|---|---|
string | message | A message that describes the current exception. |