青雲
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:37:39 +00:00
2026-03-03 02:58:20 +00:00
2026-03-02 04:09:24 +00:00
2026-03-02 21:44:40 -06:00
2026-02-27 23:24:11 -06:00
2026-03-02 17:04:42 -06:00
2026-02-19 15:04:40 +01:00
2026-03-03 03:42:30 +00:00
2026-03-02 21:38:46 -06:00
2026-02-27 23:33:20 -06:00
2026-02-11 22:53:40 -06:00
2026-03-03 02:58:20 +00:00
2026-02-28 10:00:31 -06:00
2026-02-28 10:00:31 -06:00
2026-02-28 10:00:31 -06:00
2026-03-03 02:58:20 +00:00
2026-02-27 23:15:11 -06:00
2026-03-03 02:58:20 +00:00
2026-03-03 02:58:20 +00:00
2026-03-02 17:30:40 -06:00
2026-02-06 09:32:10 +09:00
2026-03-02 08:54:20 +00:00
2026-02-28 09:58:56 -06:00
2026-02-28 09:58:56 -06:00
2026-02-28 09:58:56 -06:00
2026-03-02 08:54:20 +00:00
2026-03-02 08:54:20 +00:00
2026-03-01 20:51:45 -06:00
2026-02-06 09:32:10 +09:00
2026-02-26 13:19:25 +01:00
2026-02-18 01:34:35 +00:00
2026-02-19 14:06:37 +01:00
2026-02-19 14:06:37 +01:00
2026-03-02 16:56:57 -06:00
2026-03-02 16:56:57 -06:00
2026-03-02 17:04:42 -06:00
2026-03-02 17:30:40 -06:00
2026-03-03 02:37:23 +00:00
2026-03-03 00:54:33 +00:00
2026-03-02 04:09:24 +00:00
2026-03-02 07:42:16 -06:00
2026-03-02 07:42:16 -06:00
2026-03-03 00:34:16 +00:00
2026-03-02 04:09:24 +00:00
2026-03-02 04:09:24 +00:00
2026-03-03 00:54:33 +00:00
2026-03-03 02:58:20 +00:00
2026-03-03 02:58:20 +00:00
2026-03-02 03:41:53 +00:00
2026-03-02 03:41:53 +00:00
2026-02-06 09:32:10 +09:00
2026-02-26 13:19:25 +01:00
2026-02-27 23:22:38 -06:00
2026-02-27 23:22:38 -06:00
2026-02-27 23:57:27 -08:00
2026-02-27 23:39:24 -06:00
2026-03-02 19:37:07 -06:00
2026-03-02 19:37:07 -06:00
2026-02-06 09:32:10 +09:00
2026-03-02 21:26:21 -06:00
2026-03-02 21:26:21 -06:00
2026-02-06 09:32:10 +09:00
2026-03-03 02:58:20 +00:00
2026-02-16 14:59:30 +00:00
2026-03-02 15:47:21 +00:00
2026-03-02 15:47:21 +00:00
2026-03-02 03:41:53 +00:00
2026-03-02 03:22:07 +00:00
2026-03-02 03:41:53 +00:00
2026-02-27 23:21:22 -06:00
2026-03-02 16:50:55 -06:00
2026-03-02 16:50:55 -06:00
2026-03-02 03:41:53 +00:00
2026-03-02 03:41:53 +00:00
2026-02-26 13:19:25 +01:00
2026-02-28 10:00:31 -06:00
2026-02-28 10:00:31 -06:00
2026-03-03 01:37:39 +00:00
2026-02-27 18:41:08 -06:00
2026-02-27 22:57:16 -06:00
2026-02-06 09:32:10 +09:00
2026-02-26 13:19:25 +01:00