2023-02-12 20:55:20 +01:00
|
|
|
//
|
|
|
|
// https://mczachurski.dev
|
|
|
|
// Copyright © 2023 Marcin Czachurski and the repository contributors.
|
|
|
|
// Licensed under the MIT License.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
public enum ClientError: Error {
|
|
|
|
case cannotRetrieveStatus
|
|
|
|
}
|
|
|
|
|
|
|
|
extension ClientError: LocalizedError {
|
|
|
|
public var errorDescription: String? {
|
|
|
|
switch self {
|
|
|
|
case .cannotRetrieveStatus:
|
2023-03-15 14:27:59 +01:00
|
|
|
return NSLocalizedString("global.error.errorDuringDownloadStatus", comment: "Status cannot be downloaded from server.")
|
2023-02-12 20:55:20 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|