Struggling with the syntax a bit, is there an example anywhere?I have a snippet of code here:let request = NSFetchRequest(entityName: StockCode) request.predicate = NSPredicate(format: ean == %@, ean) let results = managedContext.executeFetchRequest(request) as! [StockCode]Basically finding a product code from a bit list of them.The last line is giving Call can throw, but it is not marked with try and the error is not handledIf I was better with try/catch historically, then I may be able to solve it, but I've tried a few things and cant solve it. I'd really appreciate some help if there's enough info here to be able to. Thanks.
2
0
2.1k