]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/except.cpp
Move all exception classes to except.h, for real this time
[libs/datafile.git] / source / except.cpp
index eea692e06fd6ee042a3732a52f4ee5fcb96812a8..d3929f6c7a8592fb6cf26fef9956c9e916f7965d 100644 (file)
@@ -1,4 +1,3 @@
-#include <typeinfo>
 #include <msp/debug/demangle.h>
 #include <msp/strings/format.h>
 #include "except.h"
@@ -48,5 +47,20 @@ nesting_error::nesting_error(const string &w):
        logic_error(w)
 { }
 
+
+unknown_keyword::unknown_keyword(const string &k):
+       runtime_error(k)
+{ }
+
+
+invalid_signature::invalid_signature(const string &k, const string &s):
+       runtime_error(format("%s %s", k, s))
+{ }
+
+
+no_collection::no_collection(const type_info &t):
+       runtime_error(Debug::demangle(t.name()))
+{ }
+
 } // namespace DataFile
 } // namespace Msp