Skip to content

Commit

Permalink
♻️ feat: 新增错误类型
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Aug 25, 2023
1 parent 24bae20 commit fb6deb1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ export enum ErrorType {

PluginManifestNotFound = 'pluginManifestNotFound', // 插件描述文件不存在
PluginManifestInvalid = 'pluginManifestInvalid', // 插件描述文件不存在
// 密码无效
InvalidAccessCode = 'InvalidAccessCode',
// OpenAI 返回的业务错误
OpenAIBizError = 'OpenAIBizError',

// ******* 客户端错误 ******* //
BadRequest = 400,
Expand Down

0 comments on commit fb6deb1

Please sign in to comment.