Impressia/Vernissage/Errors/AuthorisationError.swift

21 lines
487 B
Swift
Raw Normal View History

2023-01-29 19:11:44 +01:00
//
// https://mczachurski.dev
// Copyright © 2023 Marcin Czachurski and the repository contributors.
// Licensed under the MIT License.
//
import Foundation
public enum AuthorisationError: Error {
case badServerUrl
}
extension AuthorisationError: LocalizedError {
public var errorDescription: String? {
switch self {
case .badServerUrl:
return NSLocalizedString("Bad url to server.", comment: "User enter bad URL to server.")
}
}
}