Impressia/Vernissage/Errors/ClientError.swift

21 lines
504 B
Swift
Raw Normal View History

//
// 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:
return NSLocalizedString("Cannot retrieve status", comment: "Status cannot be downloaded from server.")
}
}
}