diff options
| author | a1xd <[email protected]> | 2021-07-05 23:33:41 -0400 |
|---|---|---|
| committer | a1xd <[email protected]> | 2021-07-05 23:33:41 -0400 |
| commit | 31efc792f5895d7ef3533390875de3c480add996 (patch) | |
| tree | 8db5b16a88f50448cb525ba8ae56801985294f63 /wrapper/interop-exception.h | |
| parent | Merge pull request #87 from matthewstrasiotto/streamer_mode (diff) | |
| parent | Handle power\exponent correctly in GUI (diff) | |
| download | rawaccel-31efc792f5895d7ef3533390875de3c480add996.tar.xz rawaccel-31efc792f5895d7ef3533390875de3c480add996.zip | |
merge lut2
Diffstat (limited to 'wrapper/interop-exception.h')
| -rw-r--r-- | wrapper/interop-exception.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 <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()) {} +}; + +public ref struct RawInputInteropException : InteropException { + RawInputInteropException(System::String^ what) : + InteropException(what) {} + RawInputInteropException(const char* what) : + InteropException(what) {} + RawInputInteropException(const std::exception& e) : + InteropException(e) {} +}; |