]> git.tdb.fi Git - libs/datafile.git/blob - source/except.h
Refactor exceptions
[libs/datafile.git] / source / except.h
1 /* $Id$
2
3 This file is part of libmspdatafile
4 Copyright © 2008  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef MSP_DATAFILE_EXCEPT_H_
9 #define MSP_DATAFILE_EXCEPT_H_
10
11 #include <msp/core/except.h>
12
13 namespace Msp {
14 namespace DataFile {
15
16 class TypeError: public Exception
17 {
18 public:
19         TypeError(const std::string &w): Exception(w) { }
20 };
21
22 class ParseError: public Exception
23 {
24 public:
25         ParseError(const std::string &w): Exception(w) { }
26 };
27
28 } // namespace DataFile
29 } // namespace Msp
30
31 #endif