青雲
1fdc20a24f
refactor(feishu): unify Lark SDK error handling with LarkApiError (#31450)
* refactor(feishu): unify Lark SDK error handling with LarkApiError
- Add LarkApiError class with code, api, and context fields for better diagnostics
- Add ensureLarkSuccess helper to replace 9 duplicate error check patterns
- Update tool registration layer to return structured error info (code, api, context)
This improves:
- Observability: errors now include API name and request context for easier debugging
- Maintainability: single point of change for error handling logic
- Extensibility: foundation for retry strategies, error classification, etc.
Affected APIs:
- wiki.space.getNode
- bitable.app.get
- bitable.app.create
- bitable.appTableField.list
- bitable.appTableField.create
- bitable.appTableRecord.list
- bitable.appTableRecord.get
- bitable.appTableRecord.create
- bitable.appTableRecord.update
* Changelog: note Feishu bitable error handling unification
---------
Co-authored-by: echoVic <echovic@163.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
2026-03-02 21:44:40 -06:00
..
2026-03-03 01:05:24 +00:00
2026-03-03 03:06:22 +00:00
2026-03-02 04:55:53 +00:00
2026-03-03 02:58:20 +00:00
2026-03-02 04:55:53 +00:00
2026-03-02 17:30:33 +00:00
2026-03-02 04:55:53 +00:00
2026-03-02 21:44:40 -06:00
2026-03-03 02:36:01 +00:00
2026-03-03 02:58:20 +00:00
2026-03-02 09:56:14 +00:00
2026-03-03 02:58:20 +00:00
2026-03-02 17:30:33 +00:00
2026-03-02 04:55:53 +00:00
2026-03-02 16:24:06 +00:00
2026-03-03 02:58:20 +00:00
2026-03-03 02:58:20 +00:00
2026-03-02 23:08:23 +00:00
2026-03-02 19:02:11 +00:00
2026-03-03 00:40:15 +00:00
2026-03-03 02:58:20 +00:00
2026-03-03 02:58:20 +00:00
2026-03-02 16:24:06 +00:00
2026-03-02 04:55:53 +00:00
2026-03-02 16:48:00 +00:00
2026-03-02 08:54:20 +00:00
2026-03-01 23:57:06 +00:00
2026-03-02 09:56:14 +00:00
2026-03-02 09:56:14 +00:00
2026-03-02 20:06:16 +00:00
2026-03-03 02:58:20 +00:00
2026-03-02 18:33:49 +00:00
2026-03-03 02:27:59 +00:00
2026-02-16 21:25:35 -05:00
2026-03-03 01:45:24 +00:00
2026-03-02 04:55:53 +00:00
2026-03-03 02:51:17 +00:00
2026-03-02 08:54:20 +00:00
2026-03-03 02:58:20 +00:00
2026-03-02 22:29:18 +00:00