We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cffead commit 67cef08Copy full SHA for 67cef08
error.go
@@ -17,6 +17,8 @@ const (
17
SDKUnknownError Error = "未知错误"
18
// SDKInvalidCredential 错误码:40001
19
SDKInvalidCredential Error = "不合法的secret参数"
20
+ // SDKAccessTokenInvalid 错误码:40014
21
+ SDKAccessTokenInvalid Error = "AccessToken 无效"
22
// SDKAccessTokenExpired 错误码:42001
23
SDKAccessTokenExpired Error = "AccessToken 已过期"
24
)
@@ -37,6 +39,8 @@ func NewSDKErr(code int, msgList ...string) Error {
37
39
return SDKInvalidCredential
38
40
case 42001:
41
return SDKAccessTokenExpired
42
+ case 40014:
43
+ return SDKAccessTokenInvalid
44
default:
45
//返回未知的自定义错误
46
if len(msgList) > 0 {
0 commit comments