DotNetDupe 4.0.6
C++17/20 Implementation of the .NET Base Class Library (BCL)
Loading...
Searching...
No Matches
Win32Exception.h
Go to the documentation of this file.
1
3
4#pragma once
5
6#include "Common.h"
8
9namespace DotNetDupe {
10 namespace System {
11 namespace ComponentModel {
12
19 private:
20 int m_nNativeErrorCode;
21
22 public:
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}
Defines common cross-platform macros, export decorators, and fundamental types.
#define DOTNETDUPE_API
Platform-specific linkage decoration for exporting or importing library symbols.
Definition Common.h:20
Serves as the base class for system exceptions across the library.
int GetNativeErrorCode() const
Gets the native error code associated with this exception.
Win32Exception()
Initializes a new instance of the Win32Exception class with the last Win32/native error code.
Represents text as a sequence of UTF-8 code units with culture-invariant operations.
Definition String.h:74
SystemException()
Initializes a new instance of the SystemException class with a default message.
Definition Exception.cpp:48