-
Notifications
You must be signed in to change notification settings - Fork 6
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
Catch missed errors during instance initiation #665
Conversation
C-level errors are bypassed by SWIG when calling `dlite.new_Instance()` and `dlite.Instance_swiginit()` since they are internal and not generated functions. Try to see if we can create normal error-catching wrappers around these functions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved under the condition that you create and issue about documenting this so that the code is selfdocumenting. Make sure to link to this PR.
Comment added to the code clarifying the purpose of this PR. |
…o errors-in-instance_init
…o errors-in-instance_init
…o errors-in-instance_init
Description
Trying to catch missed errors in dlite.Instance.init()
C-level errors are bypassed by SWIG when calling
dlite.new_Instance()
anddlite.Instance_swiginit()
since they are internal and not generated functions.Try to see if we can create normal error-catching wrappers around these functions.
Type of change
Checklist for the reviewer
This checklist should be used as a help for the reviewer.