HttpRequestException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the HttpRequestException class.
Overloads
| Name | Description |
|---|---|
| HttpRequestException() |
Initializes a new instance of the HttpRequestException class. |
| HttpRequestException(String) |
Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception. |
| HttpRequestException(String, Exception) |
Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception and an inner exception. |
HttpRequestException()
Initializes a new instance of the HttpRequestException class.
public:
HttpRequestException();
public HttpRequestException();
Public Sub New ()
Applies to
HttpRequestException(String)
Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception.
public:
HttpRequestException(System::String ^ message);
public HttpRequestException(string message);
new System.Net.Http.HttpRequestException : string -> System.Net.Http.HttpRequestException
Public Sub New (message As String)
Parameters
- message
- String
A message that describes the current exception.
Applies to
HttpRequestException(String, Exception)
Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception and an inner exception.
public:
HttpRequestException(System::String ^ message, Exception ^ inner);
public HttpRequestException(string message, Exception inner);
new System.Net.Http.HttpRequestException : string * Exception -> System.Net.Http.HttpRequestException
Public Sub New (message As String, inner As Exception)
Parameters
- message
- String
A message that describes the current exception.
- inner
- Exception
The inner exception.