]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/except.cpp
Store the failed key in KeyError
[libs/core.git] / source / core / except.cpp
index 245bc0502c0481b36a218531bb14bff93c2fbc13..4b6e4657a4b89833a373f506ec5782e1fcd24728 100644 (file)
@@ -24,6 +24,11 @@ SystemError::SystemError(const string &w_, int e):
        err(e)
 { }
 
+KeyError::KeyError(const string &w_, const string &k):
+       Exception(w_+" ("+k+")"),
+       key(k)
+{ }
+
 string SystemError::build_what(const string &w, int e)
 {
        ostringstream buf;