Skip to content

Commit

Permalink
Update AliyunpanError.swift
Browse files Browse the repository at this point in the history
Add more ServerError code values
  • Loading branch information
QuanGe authored and wzxha committed Dec 12, 2023
1 parent 0c57efe commit b55f15d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Sources/AliyunpanSDK/AliyunpanError.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,20 @@ public struct AliyunpanServerError: Error, Decodable {
case notFound = "NotFound.FileId"
/// 请求过快
case tooManyRequests = "TooManyRequests"
/// 应用不存在
case appNotExists = "AppNotExists"
/// 应用密钥不对
case invalidClientSecret = "InvalidClientSecret"
/// 授权码为空或过期
case invalidCode = "InvalidCode"
/// 应用ID和构造授权链接时填的不一致
case invalidClientId = "InvalidClientId"
/// 无效的担保类型,目前仅支持 authorization_code 和 refresh_token
case invalidGrantType = "InvalidGrantType"
/// 文件drive被锁,操作无法执行
case forbiddenDriveLocked = "ForbiddenDriveLocked"
/// 非法访问drive
case forbiddenDriveNotValid = "ForbiddenDriveNotValid"
}

public let code: Code?
Expand Down

0 comments on commit b55f15d

Please sign in to comment.