X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fcore%2Ferror.h;fp=source%2Fcore%2Ferror.h;h=c311bcdc4316e71053530f32b8e678cf5cbd43e8;hp=0000000000000000000000000000000000000000;hb=e1ea831a640fba534e7e42e399f04cdf681ef8d3;hpb=0bcb8d4d6f33cbdad7b921cac787740bfe8e212e diff --git a/source/core/error.h b/source/core/error.h new file mode 100644 index 0000000..c311bcd --- /dev/null +++ b/source/core/error.h @@ -0,0 +1,24 @@ +/* +This file is part of libmspframework +Copyright © 2006 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ +#ifndef MSP_FRAMEWORK_ERRORS_H_ +#define MSP_FRAMEWORK_ERRORS_H_ + +#include + +namespace Msp { + +class UsageError: public Msp::Exception +{ +public: + UsageError(bool b=true): Exception(""), brief(b) { } + bool get_brief() const { return brief; } +private: + bool brief; +}; + +} // namespace Msp + +#endif