refactor(proxy): distinguish circuit-open from no-provider errors

This commit is contained in:
YoVinchen
2025-12-31 14:37:33 +08:00
parent c69d36d457
commit 52199f39c1
7 changed files with 49 additions and 21 deletions
+4
View File
@@ -52,6 +52,10 @@ pub enum AppError {
},
#[error("数据库错误: {0}")]
Database(String),
#[error("所有供应商已熔断,无可用渠道")]
AllProvidersCircuitOpen,
#[error("未配置供应商")]
NoProvidersConfigured,
}
impl AppError {