aboutsummaryrefslogtreecommitdiff
path: root/zencore/except.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-05-11 13:05:39 +0200
committerStefan Boberg <[email protected]>2021-05-11 13:05:39 +0200
commitf8d9ac5d13dd37b8b57af0478e77ba1e75c813aa (patch)
tree1daf7621e110d48acd5e12e3073ce48ef0dd11b2 /zencore/except.cpp
downloadzen-f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa.tar.xz
zen-f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa.zip
Adding zenservice code
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