You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lokinet/llarp/win32/exception.hpp

19 lines
343 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:
error(std::string msg);
virtual ~error() = default;
explicit error(DWORD err, std::string msg);
};
} // namespace llarp::win32