Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers...
[reactos.git] / modules / rostests / rosautotest / CSimpleException.cpp
diff --git a/modules/rostests/rosautotest/CSimpleException.cpp b/modules/rostests/rosautotest/CSimpleException.cpp
new file mode 100644 (file)
index 0000000..f027f98
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * PROJECT:     ReactOS Automatic Testing Utility
+ * LICENSE:     GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
+ * PURPOSE:     Simple exception containing just a message
+ * COPYRIGHT:   Copyright 2009 Colin Finck (colin@reactos.org)
+ */
+
+#include "precomp.h"
+
+/**
+ * Constructs a CSimpleException object, which is catched in wmain as an exception.
+ * You should always use the EXCEPTION or SSEXCEPTION macro for throwing this exception.
+ *
+ * @param Message
+ * String containing a short message about the exception
+ */
+CSimpleException::CSimpleException(const string& Message)
+    : m_Message(Message)
+{
+}