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