Metahuman_DNA_Calibration/dnacalib/SPyUS/include/spyus/ExceptionHandling.i

11 lines
260 B
OpenEdge ABL
Raw Permalink Normal View History

2022-10-31 18:15:50 +08:00
%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");
}
}