Skip to content

Commit

Permalink
docs(development): update ChatLunaError constructor description
Browse files Browse the repository at this point in the history
- Add description for ChatLunaError constructor
- Improve clarity for error object creation in API reference
  • Loading branch information
dingyi222666 committed Nov 14, 2024
1 parent 1e8f442 commit d22c3e2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/development/api-reference/chatluna-utils/error.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const error = new ChatLunaError(ChatLunaErrorCode.NETWORK_ERROR, new Error('Orig
- **code**: `number` 错误码,一般使用 `ChatLunaErrorCode` 枚举值。
- **originalError**: `Error` 原始错误,一个 `Error` 实例。

创建一个 ChatLuna 错误。

### enum ChatLunaErrorCode

枚举类,可用的错误码如下:
Expand Down

0 comments on commit d22c3e2

Please sign in to comment.