Represents the exception that is thrown by WebRequest when an error occurs. Never create instances of this class manually. Use the WebException class instead. Never wrap the WebException class instances into System::SmartPtr.
More...
#include <web_exception.h>
Inherits Details_InvalidOperationException.
Represents the exception that is thrown by WebRequest when an error occurs. Never create instances of this class manually. Use the WebException class instead. Never wrap the WebException class instances into System::SmartPtr.
◆ ~Details_WebException()
virtual System::Net::Details_WebException::~Details_WebException |
( |
| ) |
|
|
virtual |
Destructs the current instance.
◆ Details_WebException() [1/5]
System::Net::Details_WebException::Details_WebException |
( |
| ) |
|
Constructs a new instance.
◆ Details_WebException() [2/5]
System::Net::Details_WebException::Details_WebException |
( |
String |
message | ) |
|
Constructs a new instance.
- Parameters
-
message | The error description. |
◆ Details_WebException() [3/5]
System::Net::Details_WebException::Details_WebException |
( |
String |
message, |
|
|
Exception |
innerException |
|
) |
| |
Constructs a new instance.
- Parameters
-
message | The exception message. |
innerException | The inner exception. |
◆ Details_WebException() [4/5]
Constructs a new instance.
- Parameters
-
message | The exception message. |
status | The status code. |
◆ Details_WebException() [5/5]
Constructs a new instance.
- Parameters
-
message | The exception message. |
innerException | The inner exception. |
status | The status code. |
response | The web response with which the current exception is associated. |
◆ CreateCompatibleException()
static Exception System::Net::Details_WebException::CreateCompatibleException |
( |
Exception |
exception | ) |
|
|
static |
◆ DoThrow()
Throws exception instance wrapped by exception wrapper.
- Parameters
-
self | Exception instance to be thrown. |
◆ get_Response()
Returns the web response with which the current exception is associated.
- Returns
- The web response with which the current exception is associated.
◆ get_Status()
Returns the status code.
- Returns
- The status code.