X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Fexcept.cpp;fp=source%2Fcore%2Fexcept.cpp;h=4b6e4657a4b89833a373f506ec5782e1fcd24728;hp=245bc0502c0481b36a218531bb14bff93c2fbc13;hb=9de64375e03b24ea46d36cec222150754e3818cb;hpb=ce8b99f8d48b7783fd97f3959198f9c54cebec72 diff --git a/source/core/except.cpp b/source/core/except.cpp index 245bc05..4b6e465 100644 --- a/source/core/except.cpp +++ b/source/core/except.cpp @@ -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;