CodePorting.Translator.Cs2Cpp.Framework
System::ComponentModel::Details_Win32Exception Class Reference

Throws an exception for a Win32 error code. Never create instances of this class manually. Use the Win32Exception class instead. Never wrap the Win32Exception class instances into System::SmartPtr. More...

#include <win_32_exception.h>

Inherits System::Details_ExceptionWithErrorCode< Details_SystemException >.

Public Member Functions

virtual int32_t get_NativeErrorCode () const
 Gets the Win32 error code associated with this exception. More...
 
- 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
 

Protected Member Functions

 Details_Win32Exception ()
 Initializes a new instance of the Win32Exception class with the last Win32 error that occurred. More...
 
 Details_Win32Exception (int32_t error)
 Initializes a new instance of the Win32Exception class with the specified error. More...
 
 Details_Win32Exception (const String &message)
 Initializes a new instance of the Win32Exception class with the specified detailed description. More...
 
 Details_Win32Exception (int32_t error, const String &message)
 Initializes a new instance of the Win32Exception class with the specified error and the specified detailed description. More...
 
 Details_Win32Exception (const String &message, const System::Exception &innerException)
 Initializes a new instance of the Win32Exception class with the specified detailed description and the specified exception. More...
 
void DoThrow (const System::ExceptionPtr &self) const override
 
virtual String ExtraDescription () 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
 

Detailed Description

Throws an exception for a Win32 error code. Never create instances of this class manually. Use the Win32Exception class instead. Never wrap the Win32Exception class instances into System::SmartPtr.

Constructor & Destructor Documentation

◆ Details_Win32Exception() [1/5]

System::ComponentModel::Details_Win32Exception::Details_Win32Exception ( )
protected

Initializes a new instance of the Win32Exception class with the last Win32 error that occurred.

◆ Details_Win32Exception() [2/5]

System::ComponentModel::Details_Win32Exception::Details_Win32Exception ( int32_t  error)
protected

Initializes a new instance of the Win32Exception class with the specified error.

Parameters
errorThe Win32 error code associated with this exception.

◆ Details_Win32Exception() [3/5]

System::ComponentModel::Details_Win32Exception::Details_Win32Exception ( const String message)
protected

Initializes a new instance of the Win32Exception class with the specified detailed description.

Parameters
messageA detailed description of the error.

◆ Details_Win32Exception() [4/5]

System::ComponentModel::Details_Win32Exception::Details_Win32Exception ( int32_t  error,
const String message 
)
protected

Initializes a new instance of the Win32Exception class with the specified error and the specified detailed description.

Parameters
errorThe Win32 error code associated with this exception.
messageA detailed description of the error.

◆ Details_Win32Exception() [5/5]

System::ComponentModel::Details_Win32Exception::Details_Win32Exception ( const String message,
const System::Exception innerException 
)
protected

Initializes a new instance of the Win32Exception class with the specified detailed description and the specified exception.

Parameters
messageA detailed description of the error.
innerExceptionA reference to the inner exception that is the cause of this exception.

Member Function Documentation

◆ DoThrow()

void System::ComponentModel::Details_Win32Exception::DoThrow ( const System::ExceptionPtr self) const
overrideprotected
See also
Exception::DoThrow

◆ ExtraDescription()

virtual String System::ComponentModel::Details_Win32Exception::ExtraDescription ( ) const
overrideprotectedvirtual
See also
System::Exception::ExtraDescription

Reimplemented from System::Details_ExceptionWithErrorCode< Details_SystemException >.

◆ get_NativeErrorCode()

virtual int32_t System::ComponentModel::Details_Win32Exception::get_NativeErrorCode ( ) const
virtual

Gets the Win32 error code associated with this exception.