rawaccel/wrapper/interop-exception.h

12 lines
344 B
C++

#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()) {}
};