mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
20 lines
462 B
C
20 lines
462 B
C
|
#pragma once
|
||
|
|
||
|
#include <cstdint>
|
||
|
#include <Windows.h>
|
||
|
|
||
|
namespace Win32
|
||
|
{
|
||
|
class Win32Error
|
||
|
{
|
||
|
public:
|
||
|
// Sets up a system formatted error code
|
||
|
static std::exception SystemError(DWORD ErrorCode);
|
||
|
// Occurs when a subkey is missing
|
||
|
static std::exception RegSubKeyMissing();
|
||
|
// Occurs when a subkey is malformed
|
||
|
static std::exception RegSubKeyMalformed();
|
||
|
// Occurs when a subkey has nested children
|
||
|
static std::exception RegSubKeyChildren();
|
||
|
};
|
||
|
}
|