aboutsummaryrefslogtreecommitdiff
path: root/zencore/except.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zencore/except.cpp')
-rw-r--r--zencore/except.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/zencore/except.cpp b/zencore/except.cpp
new file mode 100644
index 000000000..b02122f58
--- /dev/null
+++ b/zencore/except.cpp
@@ -0,0 +1,17 @@
+// Copyright Epic Games, Inc. All Rights Reserved.
+
+#include <zencore/except.h>
+
+namespace zen {
+
+void
+ThrowSystemException([[maybe_unused]] HRESULT hRes, [[maybe_unused]] const char* Message)
+{
+ // TODO
+
+ int ErrValue = hRes;
+
+ throw std::system_error(ErrValue, std::system_category(), Message);
+}
+
+} // namespace zen