X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Fexcept.h;h=ed9ca2337f98c667a4fa40014f9f8477cdf86314;hp=e68ec481f4aa869ada66a660c59e06e195b6b34b;hb=5da82753b395e335edaa09555566c6ffb8769118;hpb=705aca1ca0f63e7314a25f528e6e7c76765c04b8 diff --git a/source/except.h b/source/except.h index e68ec48..ed9ca23 100644 --- a/source/except.h +++ b/source/except.h @@ -2,6 +2,7 @@ #define MSP_DATAFILE_EXCEPT_H_ #include +#include 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