2022-07-09 15:05:52 +00:00
|
|
|
#pragma once
|
|
|
|
#include <windows.h>
|
2023-10-24 13:18:03 +00:00
|
|
|
|
2022-07-09 15:05:52 +00:00
|
|
|
#include <stdexcept>
|
2023-10-24 13:18:03 +00:00
|
|
|
#include <string>
|
2022-07-09 15:05:52 +00:00
|
|
|
|
|
|
|
namespace llarp::win32
|
|
|
|
{
|
2022-07-28 16:07:38 +00:00
|
|
|
std::string
|
|
|
|
error_to_string(DWORD err);
|
2022-07-09 15:05:52 +00:00
|
|
|
|
|
|
|
class error : public std::runtime_error
|
|
|
|
{
|
|
|
|
public:
|
2022-09-10 18:14:38 +00:00
|
|
|
explicit error(std::string msg);
|
2022-07-28 16:07:38 +00:00
|
|
|
virtual ~error() = default;
|
|
|
|
explicit error(DWORD err, std::string msg);
|
2022-07-09 15:05:52 +00:00
|
|
|
};
|
|
|
|
} // namespace llarp::win32
|