Table of Contents

Class HttpRequestException

Namespace
System.Net.Http
Assembly
System.Net.Http.dll

A base class for exceptions thrown by the HttpClient and HttpMessageHandler classes.

public class HttpRequestException : Exception
Inheritance
HttpRequestException
Inherited Members
Extension Methods

Constructors

HttpRequestException()

Initializes a new instance of the HttpRequestException class.

public HttpRequestException()

HttpRequestException(string)

Initializes a new instance of the HttpRequestException class.

public HttpRequestException(string message)

Parameters

message string

A message that describes the current exception.

HttpRequestException(string, Exception)

Initializes a new instance of the HttpRequestException class.

public HttpRequestException(string message, Exception inner)

Parameters

message string

A message that describes the current exception.

inner Exception

The inner exception.