Impressia/Vernissage/Errors/ClientError.swift

21 lines
527 B
Swift
Raw Normal View History

//
// 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.
//
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.")
}
}
}