2023-01-20 16:57:25 +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-01-20 16:57:25 +01:00
|
|
|
//
|
|
|
|
|
2023-02-01 18:40:28 +01:00
|
|
|
import Foundation
|
|
|
|
|
2023-01-20 16:57:25 +01:00
|
|
|
public enum DatabaseError: Error {
|
|
|
|
case cannotDownloadAccount
|
|
|
|
}
|
2023-02-01 18:40:28 +01:00
|
|
|
|
|
|
|
extension DatabaseError: LocalizedError {
|
|
|
|
public var errorDescription: String? {
|
|
|
|
switch self {
|
|
|
|
case .cannotDownloadAccount:
|
2023-03-15 14:27:59 +01:00
|
|
|
return NSLocalizedString("global.error.errorDuringUserRead", comment: "User acount cannot be downloaded from Core Data.")
|
2023-02-01 18:40:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|