Autodesk / Autodesk/AutomaticComponentToolkit
Error string propagation for global methods
- Dominant language
- Go
- Stars
- 53
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Description
Currently, the error string propagation works by calling `RegisterErrorMessage` on the base class whenever an exception is caught on the component side, which is then propagated to the binding and wrapped into a new exception.
This doesn't work for the global (`CWrapper`) methods, as there is no base class instance to register the error message on.
We ran into this issue as our "application" object is created and initialized using a global `CreateApp` method, which was throwing a `std::exception` due to missing runtime libraries. I would suggest to add the same mechanism to the `CWrapper` class so it too can propagate error messages.
Contributor guide
Assessment
This issue has not been assessed yet.