// // ErrorHandling.swift // shortcut // // Created by Bailey Townsend on 6/29/25. // import Foundation enum GenericIntentError: Error, CustomLocalizedStringResourceConvertible, LocalizedError { case general case message(_ message: String) case notFound(_ lostItem: String) var localizedStringResource: LocalizedStringResource { switch self { case let .message(message): return "\(message)" case .general: return "There was an error making the post." case let .notFound(lostItem): return "\(lostItem) could not be found" } } }