X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexcept.h;h=ed9ca2337f98c667a4fa40014f9f8477cdf86314;hb=116ea4040cbfa5b6985e95577fd7e029cc2bf30b;hp=e68ec481f4aa869ada66a660c59e06e195b6b34b;hpb=ed78b585cfc4ecb44972e346857e887b183fd7a7;p=libs%2Fdatafile.git 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