import Foundation

enum ErrorIntent: Error, CustomLocalizedStringResourceConvertible {
   case movieNotFound
   case invalidValue
    
   var localizedStringResource: LocalizedStringResource {
      switch self {
         case .movieNotFound:
            return "There is no movie with that title."
         case .invalidValue:
            return "The value is not valid."
      }
   }
}