refactor(error): 规范化分层错误类型并优化异常捕捉

- 新增 tracing 记录异常,移除不必要的 Result
- 重构 错误处理架构
This commit is contained in:
2026-07-20 20:18:38 +08:00
parent 913ff4d884
commit 3499e89bf1
11 changed files with 140 additions and 101 deletions

View File

@@ -21,3 +21,4 @@ serde = { version = "1.0.228", features = ["derive"] }
serde_json = "1.0.150"
ndarray = "0.16.1"
thiserror = "1.0" # 刚好可以开始接入你需要的标准库错误处理
tracing = "0.1.44" # 埋入日志打点(后续需要继续优化,现在只是简单尝试)