Creates a new instance of the WebException class.
Creates a new instance of the WebException class with the default status Error from the WebStatus values.
[Visual Basic] Overloads Public Sub New()
[C#] public WebException();
[C++] public: WebException();
[JScript] public function WebException();
Creates a new instance of the WebException class with the specified error message.
[Visual Basic] Overloads Public Sub New(String)
[C#] public WebException(String);
[C++] public: WebException(String*);
[JScript] public function WebException(String);
Creates a new instance of the WebException class with the specified error message and nested exception.
[Visual Basic] Overloads Public Sub New(String, Exception)
[C#] public WebException(String, Exception);
[C++] public: WebException(String*, Exception);
[JScript] public function WebException(String, Exception);
Creates a new instance of the WebException class with the specified error message and status.
[Visual Basic] Overloads Public Sub New(String, WebStatus)
[C#] public WebException(String, WebStatus);
[C++] public: WebException(String*, WebStatus);
[JScript] public function WebException(String, WebStatus);
Creates a new instance of the WebException class with the specified error message, nested exception, status and response.
[Visual Basic] Overloads Public Sub New(String, Exception, WebStatus, WebResponse)
[C#] public WebException(String, Exception, WebStatus, WebResponse);
[C++] public: WebException(String*, Exception, WebStatus, WebResponse);
[JScript] public function WebException(String, Exception, WebStatus, WebResponse);
WebException Class | WebException Members | System.Net Namespace