X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ferror.h;fp=source%2Ferror.h;h=c311bcdc4316e71053530f32b8e678cf5cbd43e8;hb=1013e3c216cdf8e0ecc0f3b1e8314989b5333818;hp=0000000000000000000000000000000000000000;hpb=5780f0826f057f99593de46a583be7c098efaf90;p=libs%2Fcore.git diff --git a/source/error.h b/source/error.h new file mode 100644 index 0000000..c311bcd --- /dev/null +++ b/source/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