# Functions
No description provided by the author
No description provided by the author
ConvertGRPCStatusErrorToAPIException 逻辑类似 status.Convert.
No description provided by the author
No description provided by the author
No description provided by the author
FromGRPCStatusErrorToAPIException 逻辑类似 status.FromError.
No description provided by the author
IsBadRequestError 判断是否是 BadRequest.
IsConflictError 判断是否是Conflict.
IsErrorWithCode 判断是否是指定的错误代码.
IsNotFoundError 判断是否是NotFoundError.
IsPermissionDenyError 判断是否是 Forbidden.
No description provided by the author
NewAccessTokenExpired 访问token过期.
NewAccessTokenIllegal 访问token不合法.
NewAPIException 创建一个API异常 用于其他模块自定义异常.
NewBadRequest 请求不合法.
NewConflict 资源冲突, 已经存在.
NewIllegalOperation 非法操作,.
NewInternalServerError 500.
NewInvalidParam 无效参数, 参数不符合要求.
NewMethodNotAllowed 405.
NewNotFound 资源找不到.
NewPermissionDeny 没有权限访问.
NewRefreshTokenExpired 刷新token过期.
NewRefreshTokenIllegal 刷新token不合法.
NewUnauthorized 未认证.
NewUnKnownException 未知异常.
No description provided by the author
No description provided by the author
# Constants
AccessTokenExpired token过期.
AccessTokenIllegal 访问token不合法.
BadRequest 请求不合法.
Conflict 资源冲突, 已经存在.
Forbidden 无权限.
IllegalOperation 非法操作.
No description provided by the author
InvalidParam 无效的参数, 参数不符合要求.
MethodNotAllowed 方法不允许.
NotFound 资源未找到.
RefreshTokenExpired token过期.
RefreshTokenIllegal 刷新token不合法.
成功, 无异常.
Unauthorized 未认证.
未知异常.
UnprocessableEntity 语义错误 ; 适用于值在逻辑或业务上不合法的情况(比如用于表示参数通过了语法检查,但语义上不合法)。.
# Interfaces
APIException API异常.
# Type aliases
No description provided by the author