]> git.tdb.fi Git - libs/datafile.git/blobdiff - source/error.h
Rename error.h to except.h
[libs/datafile.git] / source / error.h
diff --git a/source/error.h b/source/error.h
deleted file mode 100644 (file)
index 11bccd8..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/* $Id$
-
-This file is part of libmspdatafile
-Copyright © 2006  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-#ifndef MSP_DATAFILE_ERROR_H_
-#define MSP_DATAFILE_ERROR_H_
-
-#include <msp/core/error.h>
-
-namespace Msp {
-namespace DataFile {
-
-class TypeError: public Exception
-{
-public:
-       TypeError(const std::string &w_): Exception(w_) { }
-};
-
-class ParseError: public Exception
-{
-public:
-       ParseError(const std::string &w_, const std::string &s, unsigned l): Exception(w_), source(s), line(l) { }
-       const std::string &get_source() const { return source; }
-       unsigned          get_line() const    { return line; }
-       ~ParseError() throw() { }
-private:
-       std::string source;
-       unsigned    line;
-};
-
-} // namespace DataFile
-} // namespace Msp
-
-#endif