X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdataerror.h;fp=source%2Fdataerror.h;h=7b53c659b025db717d42791727293991430cfb49;hb=d14b7ddd81404b909a4c4763a36a23b94998a089;hp=0000000000000000000000000000000000000000;hpb=67146b1b3bcb7d02307dcd4cc8b88cf778b41205;p=libs%2Fdatafile.git diff --git a/source/dataerror.h b/source/dataerror.h new file mode 100644 index 0000000..7b53c65 --- /dev/null +++ b/source/dataerror.h @@ -0,0 +1,27 @@ +#ifndef MSP_DATAFILE_DATAERROR_H_ +#define MSP_DATAFILE_DATAERROR_H_ + +#include + +namespace Msp { +namespace DataFile { + +class data_error: public std::runtime_error +{ +private: + std::string source; + unsigned line; + +public: + data_error(const std::string &, unsigned, const std::string &); + data_error(const std::string &, unsigned, const std::exception &); + virtual ~data_error() throw() { } + +private: + std::string make_what(const std::string &, unsigned, const std::string &); +}; + +} // namespace DataFile +} // namespace Msp + +#endif