diff options
Diffstat (limited to 'zenhttp/include')
| -rw-r--r-- | zenhttp/include/zenhttp/httpserver.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/zenhttp/include/zenhttp/httpserver.h b/zenhttp/include/zenhttp/httpserver.h index 4267903ae..b73646dad 100644 --- a/zenhttp/include/zenhttp/httpserver.h +++ b/zenhttp/include/zenhttp/httpserver.h @@ -259,16 +259,15 @@ protected: ExtendableStringBuilder<256> m_QueryStringUtf8; }; -class HttpServerException : public std::exception +class HttpServerException : public std::system_error { public: - HttpServerException(const char* Message, uint32_t Error); + HttpServerException(std::string_view Message, std::error_code Error) : std::system_error(Error), m_What(Message) {} virtual const char* what() const override; -private: - uint32_t m_ErrorCode; - std::string m_Message; +protected: + std::string m_What; }; /** |