X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=include%2Fanna%2Fhttp%2Fparser%2FAbstract.hpp;fp=include%2Fanna%2Fhttp%2Fparser%2FAbstract.hpp;h=c68e1fe1b87acdcb8ed96aedf2570f62982b4fc9;hp=c8e4f1c71828fb6b86206a384c02c17fe5bff830;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/include/anna/http/parser/Abstract.hpp b/include/anna/http/parser/Abstract.hpp index c8e4f1c..c68e1fe 100644 --- a/include/anna/http/parser/Abstract.hpp +++ b/include/anna/http/parser/Abstract.hpp @@ -35,18 +35,18 @@ public: protected: Abstract(const ClassType::_v classType) : a_classType(classType) {;} - static void setState(Transport&, const ClassType::_v) throw(); - static void setLastChunkedByte(Transport&, const int lastChunkedByte) throw(); - static const DataBlock& getFullMessage(Transport&) throw(); - static void appendExtraParameter(Message*, const std::string& extraParameter) throw(); + static void setState(Transport&, const ClassType::_v) ; + static void setLastChunkedByte(Transport&, const int lastChunkedByte) ; + static const DataBlock& getFullMessage(Transport&) ; + static void appendExtraParameter(Message*, const std::string& extraParameter) ; - virtual int processLine(Transport&, const DataBlock&, const Token& line) const throw(RuntimeException) = 0; + virtual int processLine(Transport&, const DataBlock&, const Token& line) const noexcept(false) = 0; private: const ClassType::_v a_classType; - ClassType::_v getClassType() const throw() { return a_classType; } - std::string asString() const throw(); + ClassType::_v getClassType() const { return a_classType; } + std::string asString() const ; friend class http::Transport; };