I am writing a method that performs an action which will give us an array of NSError
s. After this, we must handle the returned array:
culprit
so we alert the user, pass it in an NSError
(with code: culprit.code
) to a device control API that only takes one error, and prematurely return.NSError
(with code: 0
) to the API, and return.I want to improve case 3 so that the code (an NSInteger
) is representative of multiple errors having occurred. Is there a standard way to represent this in Objective C, similar to how NSNotFound
represents that none was found?