summaryrefslogtreecommitdiff
path: root/wrapper/interop-exception.h
blob: 0e88b2c8167ea72772d7be78c6e3b6289692fe5a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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()) {}
};