From 7c1f14845bc948e9ea25908e96099203d9433a69 Mon Sep 17 00:00:00 2001 From: a1xd <68629610+a1xd@users.noreply.github.com> Date: Tue, 6 Apr 2021 01:21:42 -0400 Subject: update wrapper + writer to handle lut grapher is building but applying options still broken for the most part --- wrapper/interop-exception.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 wrapper/interop-exception.h (limited to 'wrapper/interop-exception.h') diff --git a/wrapper/interop-exception.h b/wrapper/interop-exception.h new file mode 100644 index 0000000..8ebae5c --- /dev/null +++ b/wrapper/interop-exception.h @@ -0,0 +1,21 @@ +#pragma once + +#include + +public ref struct InteropException : System::Exception { + InteropException(System::String^ what) : + Exception(what) {} + InteropException(const char* what) : + Exception(gcnew System::String(what)) {} + InteropException(const std::exception& e) : + InteropException(e.what()) {} +}; + +public ref struct RawInputInteropException : InteropException { + RawInputInteropException(System::String^ what) : + InteropException(what) {} + RawInputInteropException(const char* what) : + InteropException(what) {} + RawInputInteropException(const std::exception& e) : + InteropException(e) {} +}; -- cgit v1.2.3