-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for nested exceptions #11
Comments
Exceptions inherit from
You would like to change |
Good, I had not realized that ! Typically I want to be able to catch an exception triggered from SCIP, and add more information / context to it. Say, I am trying to access a SCIP parameter, and a SCIP Exception is thrown: |
So basically, we need to change all |
In my last experiments it seems pybind does not process nested exceptions the way I want, as it only prints the lastly thrown exception... Maybe not the way to go then. |
There is on open issue: pybind/pybind11#1913 |
Would be useful as well if Catch2 was able to unroll nested exceptions. |
Replace
Exception
forstd::exception
in order to allowstd::throw_with_nested
. That would improve error messages for the users.The text was updated successfully, but these errors were encountered: