This would probably require setting custom handlers on the ODE level, replacing ODE’s default error handlers with ones that raise a Python exception.
This would probably require setting custom handlers on the ODE level, replacing ODE’s default error handlers with ones that raise a Python exception.