1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00
lokinet/llarp/win32/exception.hpp
2022-09-19 20:26:36 -03:00

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