]> git.tdb.fi Git - libs/core.git/blob - source/error.h
Add files
[libs/core.git] / source / error.h
1 /*
2 This file is part of libmspframework
3 Copyright © 2006 Mikko Rasa, Mikkosoft Productions
4 Distributed under the LGPL
5 */
6 #ifndef MSP_FRAMEWORK_ERRORS_H_
7 #define MSP_FRAMEWORK_ERRORS_H_
8
9 #include <msp/error.h>
10
11 namespace Msp {
12
13 class UsageError: public Msp::Exception
14 {
15 public:
16         UsageError(bool b=true): Exception(""), brief(b) { }
17         bool get_brief() const { return brief; }
18 private:
19         bool brief;
20 };
21
22 } // namespace Msp
23
24 #endif