this repo has no description
1//
2// ErrorHandling.swift
3// shortcut
4//
5// Created by Bailey Townsend on 6/29/25.
6//
7import Foundation
8
9enum GenericIntentError: Error, CustomLocalizedStringResourceConvertible, LocalizedError {
10 case general
11 case message(_ message: String)
12 case notFound(_ lostItem: String)
13
14 var localizedStringResource: LocalizedStringResource {
15 switch self {
16 case let .message(message): return "\(message)"
17 case .general: return "There was an error making the post."
18 case let .notFound(lostItem): return "\(lostItem) could not be found"
19 }
20 }
21}