mirror of
https://github.com/oxen-io/lokinet.git
synced 2024-11-17 15:25:35 +00:00
19 lines
352 B
C++
19 lines
352 B
C++
#pragma once
|
|
#include <windows.h>
|
|
#include <string>
|
|
#include <stdexcept>
|
|
|
|
namespace llarp::win32
|
|
{
|
|
std::string
|
|
error_to_string(DWORD err);
|
|
|
|
class error : public std::runtime_error
|
|
{
|
|
public:
|
|
explicit error(std::string msg);
|
|
virtual ~error() = default;
|
|
explicit error(DWORD err, std::string msg);
|
|
};
|
|
} // namespace llarp::win32
|