]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/error.h
Use dladdr instead of backtrace_symbols in Backtrace::create (both are GNU-specific...
[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.
 */