WebException Constructor (String, Exception)
Initializes a new instance of the WebException class with the specified error message and nested exception.
Assemblies: System.Net.Requests (in System.Net.Requests.dll)
System (in System.dll)
The WebException instance is initialized with the Message property set to the value of message and the InnerException property set to the value of innerException. If message is a null reference (Nothing in Visual Basic), the Message property is initialized to a system-supplied message. The InnerException and Response properties are initialized to a null reference (Nothing in Visual Basic). The Status property is initialized to RequestCanceled.