]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/dataerror.h
Move all exception classes to a common header
[libs/datafile.git] / source / dataerror.h
diff --git a/source/dataerror.h b/source/dataerror.h
deleted file mode 100644 (file)
index 5fca0c3..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-#ifndef MSP_DATAFILE_DATAERROR_H_
-#define MSP_DATAFILE_DATAERROR_H_
-
-#include <stdexcept>
-
-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() { }
-
-       const std::string &get_source() const { return source; }
-       unsigned get_line() const { return line; }
-
-private:
-       std::string make_what(const std::string &, unsigned, const std::string &);
-};
-
-} // namespace DataFile
-} // namespace Msp
-
-#endif