System::Net::Details_WebException Class Reference

Inherits System::Details_InvalidOperationException.

Public Member Functions

virtual ~Details_WebException ()
 Destructs the current instance. More...
 
ASPOSECPP_SHARED_API WebExceptionStatus get_Status ()
 
ASPOSECPP_SHARED_API System::SharedPtr< WebResponseget_Response ()
 
ASPOSECPP_SHARED_API Details_WebException ()
 Constructs a new instance. More...
 
 MEMBER_FUNCTION_MAKE_OBJECT (Details_WebException, CODEPORTING_ARGS(), CODEPORTING_ARGS())
 
ASPOSECPP_SHARED_API Details_WebException (String message)
 
 MEMBER_FUNCTION_MAKE_OBJECT (Details_WebException, CODEPORTING_ARGS(String message), CODEPORTING_ARGS(message))
 
ASPOSECPP_SHARED_API Details_WebException (String message, Exception innerException)
 
 MEMBER_FUNCTION_MAKE_OBJECT (Details_WebException, CODEPORTING_ARGS(String message, Exception innerException), CODEPORTING_ARGS(message, innerException))
 
ASPOSECPP_SHARED_API Details_WebException (String message, WebExceptionStatus status)
 
 MEMBER_FUNCTION_MAKE_OBJECT (Details_WebException, CODEPORTING_ARGS(String message, WebExceptionStatus status), CODEPORTING_ARGS(message, status))
 
ASPOSECPP_SHARED_API Details_WebException (String message, Exception innerException, WebExceptionStatus status, System::SharedPtr< WebResponse > response)
 
 MEMBER_FUNCTION_MAKE_OBJECT (Details_WebException, CODEPORTING_ARGS(String message, Exception innerException, WebExceptionStatus status, System::SharedPtr< WebResponse > response),)
 

Static Public Member Functions

static Exception CreateCompatibleException (Exception exception)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~Details_WebException()

virtual System::Net::Details_WebException::~Details_WebException ( )
virtual

Destructs the current instance.

◆ Details_WebException() [1/5]

ASPOSECPP_SHARED_API System::Net::Details_WebException::Details_WebException ( )

Constructs a new instance.

◆ Details_WebException() [2/5]

ASPOSECPP_SHARED_API System::Net::Details_WebException::Details_WebException ( String  message)

Constructs a new instance.

Parameters
messageThe error description.

◆ Details_WebException() [3/5]

ASPOSECPP_SHARED_API System::Net::Details_WebException::Details_WebException ( String  message,
Exception  innerException 
)

Constructs a new instance.

Parameters
messageThe exception message.
innerExceptionThe inner exception.

◆ Details_WebException() [4/5]

ASPOSECPP_SHARED_API System::Net::Details_WebException::Details_WebException ( String  message,
WebExceptionStatus  status 
)

Constructs a new instance.

Parameters
messageThe exception message.
statusThe status code.

◆ Details_WebException() [5/5]

ASPOSECPP_SHARED_API System::Net::Details_WebException::Details_WebException ( String  message,
Exception  innerException,
WebExceptionStatus  status,
System::SharedPtr< WebResponse response 
)

Constructs a new instance.

Parameters
messageThe exception message.
innerExceptionThe inner exception.
statusThe status code.
responseThe web response with which the current exception is associated.

Member Function Documentation

◆ CreateCompatibleException()

static Exception System::Net::Details_WebException::CreateCompatibleException ( Exception  exception)
static

Is not implemented.

◆ get_Response()

ASPOSECPP_SHARED_API System::SharedPtr<WebResponse> System::Net::Details_WebException::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()

ASPOSECPP_SHARED_API WebExceptionStatus System::Net::Details_WebException::get_Status ( )

Returns the status code.

Returns
The status code.

◆ MEMBER_FUNCTION_MAKE_OBJECT() [1/5]

System::Net::Details_WebException::MEMBER_FUNCTION_MAKE_OBJECT ( Details_WebException  ,
CODEPORTING_ARGS()  ,
CODEPORTING_ARGS()   
)

◆ MEMBER_FUNCTION_MAKE_OBJECT() [2/5]

System::Net::Details_WebException::MEMBER_FUNCTION_MAKE_OBJECT ( Details_WebException  ,
CODEPORTING_ARGS(String message)  ,
CODEPORTING_ARGS(message)   
)

◆ MEMBER_FUNCTION_MAKE_OBJECT() [3/5]

System::Net::Details_WebException::MEMBER_FUNCTION_MAKE_OBJECT ( Details_WebException  ,
CODEPORTING_ARGS(String message, Exception innerException)  ,
CODEPORTING_ARGS(message, innerException)   
)

◆ MEMBER_FUNCTION_MAKE_OBJECT() [4/5]

System::Net::Details_WebException::MEMBER_FUNCTION_MAKE_OBJECT ( Details_WebException  ,
CODEPORTING_ARGS(String message, WebExceptionStatus status)  ,
CODEPORTING_ARGS(message, status)   
)

◆ MEMBER_FUNCTION_MAKE_OBJECT() [5/5]

System::Net::Details_WebException::MEMBER_FUNCTION_MAKE_OBJECT ( Details_WebException  ,
CODEPORTING_ARGS(String message, Exception innerException, WebExceptionStatus status, System::SharedPtr< WebResponse > response)   
)