mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-20 12:13:26 +01:00
Defines explicit error codes for OperationError.Code cases
This commit is contained in:
@@ -18,23 +18,23 @@ extension OperationError
|
|||||||
|
|
||||||
// General
|
// General
|
||||||
case unknown = 1000
|
case unknown = 1000
|
||||||
case unknownResult
|
case unknownResult = 1001
|
||||||
case cancelled
|
case cancelled = 1002
|
||||||
case timedOut
|
case timedOut = 1003
|
||||||
case unableToConnectSideJIT
|
case unableToConnectSideJIT
|
||||||
case unableToRespondSideJITDevice
|
case unableToRespondSideJITDevice
|
||||||
case wrongSideJITIP
|
case wrongSideJITIP
|
||||||
case SideJITIssue // (error: String)
|
case SideJITIssue // (error: String)
|
||||||
case refreshsidejit
|
case refreshsidejit
|
||||||
case notAuthenticated
|
case notAuthenticated = 1004
|
||||||
case appNotFound
|
case appNotFound = 1005
|
||||||
case unknownUDID
|
case unknownUDID = 1006
|
||||||
case invalidApp
|
case invalidApp = 1007
|
||||||
case invalidParameters
|
case invalidParameters = 1008
|
||||||
case maximumAppIDLimitReached//((application: ALTApplication, requiredAppIDs: Int, availableAppIDs: Int, nextExpirationDate: Date)
|
case maximumAppIDLimitReached = 1009
|
||||||
case noSources
|
case noSources = 1010
|
||||||
case openAppFailed//(name: String)
|
case openAppFailed = 1011
|
||||||
case missingAppGroup
|
case missingAppGroup = 1012
|
||||||
case refreshAppFailed
|
case refreshAppFailed
|
||||||
|
|
||||||
// Connection
|
// Connection
|
||||||
@@ -45,12 +45,12 @@ extension OperationError
|
|||||||
case anisetteV3Error//(message: String)
|
case anisetteV3Error//(message: String)
|
||||||
|
|
||||||
case cacheClearError//(errors: [String])
|
case cacheClearError//(errors: [String])
|
||||||
case forbidden
|
case forbidden = 1013
|
||||||
|
|
||||||
/* Connection */
|
/* Connection */
|
||||||
case serverNotFound = 1200
|
case serverNotFound = 1200
|
||||||
case connectionFailed
|
case connectionFailed = 1201
|
||||||
case connectionDropped
|
case connectionDropped = 1202
|
||||||
}
|
}
|
||||||
|
|
||||||
static let unknownResult: OperationError = .init(code: .unknownResult)
|
static let unknownResult: OperationError = .init(code: .unknownResult)
|
||||||
|
|||||||
Reference in New Issue
Block a user