Error string propagation for global methods
还没有人认领这个 Issue。
评估
调研方向
首先跟踪基类中的 RegisterErrorMessage,以及 CWrapper 对 CreateApp 等全局方法的处理。确认组件侧如何捕获异常,以及 bindings 如何对其进行封装;当全局方法的异常能够像组件方法的异常一样,通过 bindings 传递其错误字符串时,这项工作就完成了。
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Go
- 星标
- 54
- 派生
- 26
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Autodesk/AutomaticComponentToolkit 的其他 Issue
-
Python binding: Avoid using globals in Base.__del__()可能重新可做 @martinweismann 于 216 天前认领,目前没有进行中的 PR。 未关闭
Autodesk/AutomaticComponentToolkit#226 · 5 条评论 · 3 个 reaction · 已指派 3 人 ·
-
难度 2/5 1-3 小时 新手友好度 45/100
Autodesk/AutomaticComponentToolkit#213 · 1 条评论 · 2 个 reaction ·
-
难度 3/5 1-2 天 新手友好度 35/100
Autodesk/AutomaticComponentToolkit#188 · 1 条评论 ·
-
难度 5/5 一周以上 新手友好度 20/100
Autodesk/AutomaticComponentToolkit#183 · 1 条评论 ·
-
stringoutclass issues可能重新可做 @martinweismann 于 213 天前认领,目前没有进行中的 PR。 未关闭
Autodesk/AutomaticComponentToolkit#162 · 1 个 reaction · 已指派 2 人 ·
查看 Autodesk/AutomaticComponentToolkit 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 1/5 1 小时以内 新手友好度 65/100
521xueweihan/HelloGitHub#3789 ·
-
难度 2/5 1-3 小时 新手友好度 88/100
维护者通常 12 天内回复
-
stage-fail
难度 2/5 1-3 小时 新手友好度 78/100
siyuan-note/bazaar#2282 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
openshift/kube-compare#307 ·
维护者通常 1 天内回复