X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Fexcept.h;h=5dfbe8d03d56d56ac8a879eddc696dbb866670e5;hb=20e1beb546c26eae3b1a61ab2051108a7dca221f;hp=d030c41c12937e1a3846ce819c445cd2b953e308;hpb=c13c5d2e330e4cee177c1fd8e0b6153c7e2503e4;p=libs%2Fcore.git diff --git a/source/core/except.h b/source/core/except.h index d030c41..5dfbe8d 100644 --- a/source/core/except.h +++ b/source/core/except.h @@ -46,6 +46,11 @@ class KeyError: public Exception { public: KeyError(const std::string &w_): Exception(w_) { } + KeyError(const std::string &w_, const std::string &k); + const std::string &get_key() const { return key; } + ~KeyError() throw() { } +private: + std::string key; }; /**