diff options
| author | Per Larsson <[email protected]> | 2021-09-06 13:36:23 +0200 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-09-06 13:36:23 +0200 |
| commit | 482d8087c8522248f85c00233ab06a7ef6a34c55 (patch) | |
| tree | 754f7fb287cd6695e7ac2c765fe394ae79ae7fce /zencore/include | |
| parent | Changed Jupiter endpoint to dev environment. (diff) | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-482d8087c8522248f85c00233ab06a7ef6a34c55.tar.xz zen-482d8087c8522248f85c00233ab06a7ef6a34c55.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'zencore/include')
| -rw-r--r-- | zencore/include/zencore/httpserver.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/zencore/include/zencore/httpserver.h b/zencore/include/zencore/httpserver.h index 009fd9f2c..2158f87a8 100644 --- a/zencore/include/zencore/httpserver.h +++ b/zencore/include/zencore/httpserver.h @@ -256,10 +256,13 @@ protected: class HttpServerException : public std::exception { public: - HttpServerException(const char* Message, uint32_t Error) : std::exception(Message), m_ErrorCode(Error) {} + HttpServerException(const char* Message, uint32_t Error); + + virtual const char* what() const override; private: - uint32_t m_ErrorCode; + uint32_t m_ErrorCode; + std::string m_Message; }; /** @@ -318,7 +321,7 @@ class HttpRouterRequest public: HttpRouterRequest(HttpServerRequest& Request) : m_HttpRequest(Request) {} - ZENCORE_API std::string GetCapture(int Index) const; + ZENCORE_API std::string GetCapture(uint32_t Index) const; inline HttpServerRequest& ServerRequest() { return m_HttpRequest; } private: @@ -331,7 +334,7 @@ private: }; inline std::string -HttpRouterRequest::GetCapture(int Index) const +HttpRouterRequest::GetCapture(uint32_t Index) const { ZEN_ASSERT(Index < m_Match.size()); |