X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Fexcept.h;h=cc8c1fbdcd6b3a4f5b303023871d667b66287381;hp=e68ec481f4aa869ada66a660c59e06e195b6b34b;hb=3272ce1847cfda26c3f04ba9c7acc8285ddb2230;hpb=ed78b585cfc4ecb44972e346857e887b183fd7a7 diff --git a/source/except.h b/source/except.h index e68ec48..cc8c1fb 100644 --- a/source/except.h +++ b/source/except.h @@ -2,6 +2,8 @@ #define MSP_DATAFILE_EXCEPT_H_ #include +#include +#include namespace Msp { namespace DataFile { @@ -56,6 +58,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