error categories use numeric id

This commit is contained in:
Klemens Morgenstern
2023-01-21 18:37:25 +08:00
committed by Klemens Morgenstern
parent 97ece405b8
commit aef9c88c9d
3 changed files with 14 additions and 0 deletions

View File

@ -26,6 +26,9 @@ public:
return "boost.beast";
}
error_codes() : error_category(0x002f6e94401c6e8bu) {}
BOOST_BEAST_DECL
std::string
message(int ev) const override
@ -62,6 +65,9 @@ public:
return "boost.beast";
}
error_conditions() : error_category(0x3dd0b0ce843c5b10u) {}
BOOST_BEAST_DECL
std::string
message(int cv) const override

View File

@ -27,6 +27,8 @@ public:
return "beast.http";
}
http_error_category() : error_category(0x964627da815bf210u) {}
std::string
message(int ev) const override
{

View File

@ -20,6 +20,9 @@ namespace detail {
class error_codes : public error_category
{
public:
error_codes() : error_category(0x065d7edd7687edafu ) {}
const char*
name() const noexcept override
{
@ -123,6 +126,9 @@ public:
return "boost.beast.websocket";
}
error_conditions() : error_category(0x7a8de5d61799ce9eu) {}
std::string
message(int cv) const override
{