diff options
| author | Stefan Boberg <[email protected]> | 2021-09-12 13:46:57 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-12 13:46:57 +0200 |
| commit | fa1f144a4eb7d201ef84b8d369d40f26fc73dff6 (patch) | |
| tree | 39869d2f690bd91734ea6eed76e777caf3aa01a4 | |
| parent | clang-format fixes (diff) | |
| download | zen-fa1f144a4eb7d201ef84b8d369d40f26fc73dff6.tar.xz zen-fa1f144a4eb7d201ef84b8d369d40f26fc73dff6.zip | |
Eliminated HttpServerException and related classes
| -rw-r--r-- | zenhttp/httpserver.cpp | 8 | ||||
| -rw-r--r-- | zenhttp/httpsys.cpp | 10 | ||||
| -rw-r--r-- | zenhttp/httpsys.h | 7 | ||||
| -rw-r--r-- | zenhttp/include/zenhttp/httpserver.h | 11 |
4 files changed, 0 insertions, 36 deletions
diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp index e9baf2e49..75678d433 100644 --- a/zenhttp/httpserver.cpp +++ b/zenhttp/httpserver.cpp @@ -266,14 +266,6 @@ HttpServerRequest::ReadPayloadPackage() ////////////////////////////////////////////////////////////////////////// -const char* -HttpServerException::what() const -{ - return m_What.c_str(); -} - -////////////////////////////////////////////////////////////////////////// - void HttpRequestRouter::AddPattern(const char* Id, const char* Regex) { diff --git a/zenhttp/httpsys.cpp b/zenhttp/httpsys.cpp index f06460822..8aa30344b 100644 --- a/zenhttp/httpsys.cpp +++ b/zenhttp/httpsys.cpp @@ -63,16 +63,6 @@ class HttpSysServer; class HttpSysTransaction; class HttpMessageResponseRequest; -////////////////////////////////////////////////////////////////////////// - -HttpSysException::HttpSysException(const char* Message, uint32_t Error) -: HttpServerException(Message, std::error_code(Error, std::system_category())) -{ -} - -HttpSysException::~HttpSysException() -{ -} ////////////////////////////////////////////////////////////////////////// diff --git a/zenhttp/httpsys.h b/zenhttp/httpsys.h index 62a3699cb..6616817ec 100644 --- a/zenhttp/httpsys.h +++ b/zenhttp/httpsys.h @@ -71,12 +71,5 @@ private: Event m_ShutdownEvent; }; -class HttpSysException : public HttpServerException -{ -public: - HttpSysException(const char* Message, uint32_t Error); - ~HttpSysException(); -}; - } // namespace zen #endif diff --git a/zenhttp/include/zenhttp/httpserver.h b/zenhttp/include/zenhttp/httpserver.h index b73646dad..b8b63ac4d 100644 --- a/zenhttp/include/zenhttp/httpserver.h +++ b/zenhttp/include/zenhttp/httpserver.h @@ -259,17 +259,6 @@ protected: ExtendableStringBuilder<256> m_QueryStringUtf8; }; -class HttpServerException : public std::system_error -{ -public: - HttpServerException(std::string_view Message, std::error_code Error) : std::system_error(Error), m_What(Message) {} - - virtual const char* what() const override; - -protected: - std::string m_What; -}; - /** * Base class for implementing an HTTP "service" * |