Expand description
OpenLark Client 错误类型定义
基于 openlark-core 的现代化错误处理系统 直接使用 CoreError,提供类型安全和用户友好的错误管理
Structs§
- Error
Analyzer - 错误分析器,提供详细的错误信息和恢复建议
Traits§
- Client
Error Ext - 客户端错误扩展特征,提供错误恢复建议和步骤
Functions§
- api_
error - 创建API错误
- authentication_
error - 创建认证错误
- business_
error - 创建业务逻辑错误
- configuration_
error - 创建配置错误
- from_
feishu_ response - 基于飞书通用
code的统一错误映射(客户端自定义解析时可复用) - from_
sdk_ result - 🔧 从 openlark-core SDKResult 转换为客户端 Result 的便利函数
- internal_
error - 创建内部错误
- network_
error - 创建网络错误
- permission_
missing_ error - 创建缺少权限 scope 的错误
- rate_
limit_ error - 创建限流错误
- registry_
error - 创建注册表错误
- serialization_
error - 创建序列化错误
- service_
unavailable_ error - 创建服务不可用错误
- sso_
token_ invalid_ error - 创建 SSO 令牌无效错误
- timeout_
error - 创建超时错误
- token_
expired_ error - 创建访问令牌过期错误(飞书通用码 99991677)
- token_
invalid_ error - 创建访问令牌格式/内容无效错误
- user_
identity_ invalid_ error - 创建身份标识非法错误
- validation_
error - 创建验证错误
- with_
context - 🔧 创建带有上下文的错误的便利函数
- with_
operation_ context - 🔧 创建带有操作上下文的错误的便利函数