2023-02-12 20:55:20 +01:00
|
|
|
//
|
|
|
|
// https://mczachurski.dev
|
|
|
|
// Copyright © 2023 Marcin Czachurski and the repository contributors.
|
2023-03-28 10:35:38 +02:00
|
|
|
// Licensed under the Apache License 2.0.
|
2023-02-12 20:55:20 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|