cost 173 ms
应用程序的错误处理:如何返回公共消息错误而不是所有错误链并同时跟踪它? - Error handling for applications: how to return a public message error instead of all the chain of errors and tracing it at the same time?

序幕我正在使用async-graphql ,我有数百个解析器,对于每个解析器,我想跟踪所有可能的错误。 在我的应用程序的每种方法中,我都在使用anyhow::{Error} 。 现在我对每个解析器都有类似的代码:#[Object] impl MutationRoot { async fn ...


排序:
质量:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM