src/types.h

changeset 82
841562f5a32f
parent 81
071715c17296
child 84
88c4b3ca3e5d
--- a/src/types.h	Sat Jan 18 02:11:45 2014 +0200
+++ b/src/types.h	Sun Jan 19 20:16:00 2014 +0200
@@ -41,6 +41,20 @@
 	return (a >= 0) ? a : -a;
 }
 
+// =============================================================================
+// A simple basic exception
+//
+class simple_exception : public std::exception
+{
+	public:
+		simple_exception();
+
+		inline const char* what() const throw()
+		{
+			return "simple exception";
+		}
+};
+
 #ifdef IN_IDE_PARSER
 using FILE = void;
 #endif

mercurial