Metahuman_DNA_Calibration/dnacalib/SPyUS/include/spyus/ExceptionHandling.i
2022-11-29 14:25:24 +01:00

11 lines
260 B
OpenEdge ABL

%include exception.i
%exception {
try {
$action
} catch (std::exception& e) {
SWIG_exception_fail(SWIG_RuntimeError, e.what());
} catch (...) {
SWIG_exception_fail(SWIG_RuntimeError, "Unhandled exception occurred");
}
}