4#include <system/exceptions.h>
5#include <system/shared_ptr.h>
6#include <system/string.h>
8#include <net/http_web_request.h>
9#include <net/web_exception_status.h>
11namespace System {
namespace Net {
13class Details_WebException;
21 friend class System::ExceptionWrapperHelper;
65 CODEPORTING_ARGS(message, innerException, status, response)
The exception that is thrown when a method is invoked on an object which is in the state inconsistent...
Template that represents wrapper of exceptions that are derived from Exception class.
Definition: exception.h:113
Represents the exception that is thrown by WebRequest when an error occurs. Never create instances of...
Definition: web_exception.h:20
Details_WebException(String message, Exception innerException, WebExceptionStatus status, System::SharedPtr< WebResponse > response)
Constructs a new instance.
Details_WebException(String message, WebExceptionStatus status)
Constructs a new instance.
virtual ~Details_WebException()
Destructs the current instance.
System::SharedPtr< WebResponse > get_Response()
Returns the web response with which the current exception is associated.
Details_WebException(String message)
Constructs a new instance.
Details_WebException()
Constructs a new instance.
void DoThrow(const System::ExceptionPtr &self) const override
Throws exception instance wrapped by exception wrapper.
Definition: web_exception.h:74
static Exception CreateCompatibleException(Exception exception)
Is not implemented.
Details_WebException(String message, Exception innerException)
Constructs a new instance.
WebExceptionStatus get_Status()
Returns the status code.
Pointer class to wrap types being allocated on heap. Use it to manage memory for classes inheriting O...
Definition: smart_ptr.h:180
String class used across the library. Is a substitute for C# System.String when translating code....
Definition: string.h:122
WebExceptionStatus
Enumerates the status codes of the WebException class.
Definition: web_exception_status.h:8
Definition: db_command.h:9