diff options
Diffstat (limited to 'wrapper/interop-exception.h')
| -rw-r--r-- | wrapper/interop-exception.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/wrapper/interop-exception.h b/wrapper/interop-exception.h new file mode 100644 index 0000000..0e88b2c --- /dev/null +++ b/wrapper/interop-exception.h @@ -0,0 +1,12 @@ +#pragma once + +#include <exception> + +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()) {} +}; |