mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-05-17 12:02:43 +00:00
16 lines
397 B
Swift
16 lines
397 B
Swift
import Foundation
|
|
|
|
public enum PostError: Error {
|
|
// Throw when any attached media is missing media description (alt text)
|
|
case missingAltText
|
|
}
|
|
|
|
extension PostError: CustomStringConvertible {
|
|
public var description: String {
|
|
switch self {
|
|
case .missingAltText:
|
|
return NSLocalizedString("status.error.no-alt-text", comment: "media does not have media description")
|
|
}
|
|
}
|
|
}
|