HttpRequestException Constructor (String, Exception)
Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception and an inner exception.
Namespace: System.Net.Http
Assembly: System.Net.Http (in System.Net.Http.dll)
Syntax
'Declaration
Public Sub New ( _
message As String, _
inner As Exception _
)
'Usage
Dim message As String
Dim inner As Exception
Dim instance As New HttpRequestException(message, _
inner)
public HttpRequestException(
string message,
Exception inner
)
public:
HttpRequestException(
String^ message,
Exception^ inner
)
new :
message:string *
inner:Exception -> HttpRequestException
public function HttpRequestException(
message : String,
inner : Exception
)
Parameters
- message
Type: System.String
A message that describes the current exception.
- inner
Type: System.Exception
The inner exception.