X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Ferror.h;h=d030c41c12937e1a3846ce819c445cd2b953e308;hb=55a79fbe96a87183fa4e11049eb161943636b1dd;hp=eecda49bd00cf8553a6f1be02c7c739a1e07e667;hpb=9e8e96c9e98e4aed3713ca09011aebafc9f62f87;p=libs%2Fcore.git 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. */