DotNetDupe
4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Toggle main menu visibility
Loading...
Searching...
No Matches
Win32Exception.h
Go to the documentation of this file.
1
3
4
#pragma once
5
6
#include "
Common.h
"
7
#include "
System/SystemException.h
"
8
9
namespace
DotNetDupe
{
10
namespace
System
{
11
namespace
ComponentModel
{
12
18
class
Win32Exception
:
public
SystemException
{
19
private
:
20
int
m_nNativeErrorCode;
21
22
public
:
24
DOTNETDUPE_API
Win32Exception
();
25
28
DOTNETDUPE_API
explicit
Win32Exception
(
int
nNativeErrorCode);
29
33
DOTNETDUPE_API
Win32Exception
(
int
nNativeErrorCode,
const
String
& sMessage);
34
37
DOTNETDUPE_API
Win32Exception
(
const
String
& sMessage);
38
41
DOTNETDUPE_API
int
GetNativeErrorCode
()
const
{
return
m_nNativeErrorCode; }
42
};
43
44
}
45
}
46
}
Common.h
Defines common cross-platform macros, export decorators, and fundamental types.
DOTNETDUPE_API
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition
Common.h:20
SystemException.h
Serves as the base class for system exceptions across the library.
DotNetDupe::System::ComponentModel::Win32Exception::GetNativeErrorCode
int GetNativeErrorCode() const
Gets the native error code associated with this exception.
Definition
Win32Exception.h:41
DotNetDupe::System::ComponentModel::Win32Exception::Win32Exception
Win32Exception()
Initializes a new instance of the Win32Exception class with the last Win32/native error code.
Definition
Win32Exception.cpp:48
DotNetDupe::System::String
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition
String.h:74
DotNetDupe::System::SystemException::SystemException
SystemException()
Initializes a new instance of the SystemException class with a default message.
Definition
Exception.cpp:48
DotNetDupe::System::ComponentModel
Definition
Win32Exception.h:11
DotNetDupe::System
Definition
Action.h:11
DotNetDupe
Definition
IServiceCollection.h:7
Include
System
ComponentModel
Win32Exception.h
Generated by
1.18.0