Autodesk / Autodesk/AutomaticComponentToolkit

Error string propagation for global methods

Open
#74 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.