CodePorting.Translator.Cs2Cpp.Framework
System::Runtime::InteropServices::Details_ExternalException Class Reference

The base exception type for all COM interop exceptions and structured exception handling (SEH) exceptions. Never create instances of this class manually. Use the ExternalException class instead. Never wrap the ExternalException class instances into System::SmartPtr. More...

#include <external_exception.h>

Inherits System::Details_ExceptionWithErrorCode< Details_SystemException >.

Protected Member Functions

 Details_ExternalException ()
 Initializes a new instance of the ExternalException class with default properties. More...
 
 Details_ExternalException (const String &message)
 Initializes a new instance of the ExternalException class with a specified error message. More...
 
 Details_ExternalException (const String &message, const System::Exception &innerException)
 Initializes a new instance of the ExternalException class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
 Details_ExternalException (const String &message, int32_t errorCode)
 Initializes a new instance of the ExternalException class with a specified error message and the HRESULT of the error. param message he error message that specifies the reason for the exception. param The HRESULT of the error. More...
 
void DoThrow (const System::ExceptionPtr &self) const override
 
- Protected Member Functions inherited from System::Details_ExceptionWithErrorCode< Details_SystemException >
 Details_ExceptionWithErrorCode ()
 Initializes a new instance of the ExceptionWithErrorCode class with default properties. More...
 
 Details_ExceptionWithErrorCode (const String &message)
 Initializes a new instance of the ExceptionWithErrorCode class with a specified error message. More...
 
 Details_ExceptionWithErrorCode (const String &message, const System::Exception &innerException)
 Initializes a new instance of the ExceptionWithErrorCode class with a specified error message and a reference to the inner exception that is the cause of this exception. More...
 
 Details_ExceptionWithErrorCode (const String &message, int32_t errorCode)
 Initializes a new instance of the ExceptionWithErrorCode class with a specified error message and the HRESULT of the error. param message he error message that specifies the reason for the exception. param The HRESULT of the error. More...
 
virtual String ExtraDescription () const override
 

Additional Inherited Members

- Public Member Functions inherited from System::Details_ExceptionWithErrorCode< Details_SystemException >
virtual int32_t get_ErrorCode () const
 Gets the HRESULT of the error. More...
 
virtual String get_Message () const override
 

Detailed Description

The base exception type for all COM interop exceptions and structured exception handling (SEH) exceptions. Never create instances of this class manually. Use the ExternalException class instead. Never wrap the ExternalException class instances into System::SmartPtr.

Constructor & Destructor Documentation

◆ Details_ExternalException() [1/4]

System::Runtime::InteropServices::Details_ExternalException::Details_ExternalException ( )
protected

Initializes a new instance of the ExternalException class with default properties.

◆ Details_ExternalException() [2/4]

System::Runtime::InteropServices::Details_ExternalException::Details_ExternalException ( const String message)
protected

Initializes a new instance of the ExternalException class with a specified error message.

Parameters
messageThe error message string.

◆ Details_ExternalException() [3/4]

System::Runtime::InteropServices::Details_ExternalException::Details_ExternalException ( const String message,
const System::Exception innerException 
)
protected

Initializes a new instance of the ExternalException class with a specified error message and a reference to the inner exception that is the cause of this exception.

Parameters
messageThe error message that explains the reason for the exception.
innerExceptionThe exception that is the cause of the current exception. If the innerException parameter is not null, the current exception is raised in a catch block that handles the inner exception.

◆ Details_ExternalException() [4/4]

System::Runtime::InteropServices::Details_ExternalException::Details_ExternalException ( const String message,
int32_t  errorCode 
)
protected

Initializes a new instance of the ExternalException class with a specified error message and the HRESULT of the error. param message he error message that specifies the reason for the exception. param The HRESULT of the error.

Member Function Documentation

◆ DoThrow()

void System::Runtime::InteropServices::Details_ExternalException::DoThrow ( const System::ExceptionPtr self) const
overrideprotected
See also
Exception::DoThrow