X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Ferror.h;h=d030c41c12937e1a3846ce819c445cd2b953e308;hp=eecda49bd00cf8553a6f1be02c7c739a1e07e667;hb=d61b4678e4e4a2a3661a2472dc7349cc9fd5eaad;hpb=9e8e96c9e98e4aed3713ca09011aebafc9f62f87 diff --git a/source/core/error.h b/source/core/error.h index eecda49..d030c41 100644 --- a/source/core/error.h +++ b/source/core/error.h @@ -39,6 +39,15 @@ public: InvalidParameterValue(const std::string &w_): Exception(w_) { } }; +/** +Thrown when a lookup from a map fails. +*/ +class KeyError: public Exception +{ +public: + KeyError(const std::string &w_): Exception(w_) { } +}; + /** Thrown when the current object state doesn't allow the requested action. */