]> git.tdb.fi Git - libs/core.git/blobdiff - source/core/error.h
Rename to libmspcore
[libs/core.git] / source / core / error.h
diff --git a/source/core/error.h b/source/core/error.h
new file mode 100644 (file)
index 0000000..c311bcd
--- /dev/null
@@ -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 <msp/error.h>
+
+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