]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/error.h
Win32 doesn't have execinfo.h, so don't include it
[libs/core.git] / source / core / error.h
index eecda49bd00cf8553a6f1be02c7c739a1e07e667..d030c41c12937e1a3846ce819c445cd2b953e308 100644 (file)
@@ -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.
 */