]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/except.h
Store the failed key in KeyError
[libs/core.git] / source / core / except.h
index d030c41c12937e1a3846ce819c445cd2b953e308..a18e028730aedddac1d044de1b98b4fa36edea21 100644 (file)
@@ -46,6 +46,10 @@ 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; }
+private:
+       std::string key;
 };
 
 /**