]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/except.cpp
Add missing includes
[libs/core.git] / source / core / except.cpp
index 245bc0502c0481b36a218531bb14bff93c2fbc13..7ac634d9a30c9ef9c8f8dec01633b5c950c96ef8 100644 (file)
@@ -4,7 +4,9 @@ This file is part of libmspcore
 Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
+
 #include <sstream>
+#include <cstring>
 #include "except.h"
 
 using namespace std;
@@ -24,6 +26,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;