]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/except.h
Move all exception classes to except.h, for real this time
[libs/datafile.git] / source / except.h
index e68ec481f4aa869ada66a660c59e06e195b6b34b..ed9ca2337f98c667a4fa40014f9f8477cdf86314 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_DATAFILE_EXCEPT_H_
 
 #include <stdexcept>
+#include <typeinfo>
 
 namespace Msp {
 namespace DataFile {
@@ -56,6 +57,29 @@ public:
        virtual ~nesting_error() throw() { }
 };
 
+
+class unknown_keyword: public std::runtime_error
+{
+public:
+       unknown_keyword(const std::string &);
+       virtual ~unknown_keyword() throw() { }
+};
+
+
+class invalid_signature: public std::runtime_error
+{
+public:
+       invalid_signature(const std::string &, const std::string &);
+       virtual ~invalid_signature() throw() { }
+};
+
+
+class no_collection: public std::runtime_error
+{
+public:
+       no_collection(const std::type_info &);
+};
+
 } // namespace DataFile
 } // namespace Msp