Simplify RestRequest struct.

This commit is contained in:
Chunting Gu
2019-04-12 09:48:13 +08:00
parent 5c465a1e2d
commit 80d0c73617
4 changed files with 32 additions and 33 deletions
+6 -2
View File
@@ -195,14 +195,18 @@ public:
explicit Exception(Error error, const std::string& details = "",
bool timeout = false);
Error error() const { return error_; }
Error error() const {
return error_;
}
// Note that `noexcept` is required by GCC.
const char* what() const WEBCC_NOEXCEPT override{
return msg_.c_str();
}
bool timeout() const { return timeout_; }
bool timeout() const {
return timeout_;
}
private:
Error error_;