мелкие правки

This commit is contained in:
Антон
2025-10-04 09:54:55 +03:00
parent 2b5e601387
commit 5346bb2849
13 changed files with 51 additions and 158 deletions
+20
View File
@@ -0,0 +1,20 @@
#pragma once
#include <boost/beast/http/status.hpp>
#include <string>
#include <boost/exception/to_string.hpp>
namespace uad
{
struct session_exception : std::exception
{
const boost::beast::http::status code;
const std::string comment;
const std::string message;
session_exception(const boost::beast::http::status ec, const std::string info)
: code(ec), comment(info), message(std::to_string(static_cast<uint64_t>(ec)) + " - " + comment)
{}
char const* what() const override;
};
}