#define MSP_DATAFILE_EXCEPT_H_
#include <stdexcept>
+#include <string>
+#include <typeinfo>
namespace Msp {
namespace DataFile {
public:
data_error(const std::string &, unsigned, const std::string &);
data_error(const std::string &, unsigned, const std::exception &);
+ data_error(const std::string &, unsigned, const data_error &);
virtual ~data_error() throw() { }
const std::string &get_source() const { return source; }
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