]> git.tdb.fi Git - libs/core.git/blob - source/error.h
Initial revision
[libs/core.git] / source / error.h
1 /* $Id$
2
3 This file is part of libmspio
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7 #ifndef MSP_IO_ERROR_H_
8 #define MSP_IO_ERROR_H_
9
10 #include <msp/core/error.h>
11
12 namespace Msp {
13 namespace IO {
14
15 class Exception: public Msp::Exception
16 {
17 public:
18         Exception(const std::string &w_): Msp::Exception(w_) { }
19 };
20
21 class FileNotFound: public Exception
22 {
23 public:
24         FileNotFound(const std::string &w_, const std::string &f): Exception(w_), filename(f) { }
25         const std::string &get_filename() { return filename; }
26         ~FileNotFound() throw() { }
27 private:
28         std::string filename;
29 };
30
31 } // namespace IO
32 } // namespace Msp
33
34 #endif