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...
Inherits System::Details_ExceptionWithErrorCode< Details_SystemException >.
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.
◆ 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
-
error | The 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
-
message | A 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
-
error | The Win32 error code associated with this exception. |
message | A 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
-
message | A detailed description of the error. |
innerException | A reference to the inner exception that is the cause of this exception. |
◆ 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 |
◆ get_NativeErrorCode()
virtual int32_t System::ComponentModel::Details_Win32Exception::get_NativeErrorCode |
( |
| ) |
const |
|
virtual |
Gets the Win32 error code associated with this exception.