Autodesk / Autodesk/AutomaticComponentToolkit
Error string propagation for global methods
- Lingua principale
- Go
- Stelle
- 53
- Fork
- 26
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia tracciando RegisterErrorMessage nella classe base e la gestione di CWrapper per i metodi globali come CreateApp. Verifica come vengono intercettate le eccezioni sul lato del componente e come vengono racchiuse dai bindings; il lavoro è completato quando le eccezioni dei metodi globali propagano le proprie stringhe di errore attraverso i bindings come le eccezioni dei metodi dei componenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp
- Ambito
- tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100