Closed AllisonJohn closed 3 days ago
Here is what happens when adding each of these lines to the catch:
OPENSIM_THROW(Exception, "test opensim exception"); ->
casadi_error("test casadi exception"); ->
"libc++abi: terminating due to uncaught exception of type OpenSim::Exception: MocoCasADiSolver failed internally with message: /Users/allisonjohn/Documents/opensim-core/OpenSim/Moco/MocoCasADiSolver/MocoCasADiSolver.cpp:388: test casadi exception
In Object '
throw std::invalid_argument("test exception"); ->
Fixes issue #3730
Brief summary of changes
Instead of continuing on, MocoCasADiSolver will throw exceptions when the solver doesn't fails so that the next lines don't cause more errors.
Testing I've completed
Tested putting opensim, casadi, and std errors in the try section to see the error messages when running the sliding mass problem. Without the added errors it works normally.
Looking for feedback on...
CHANGELOG.md (choose one)
This change is