Ad

Error Code 1560 Vs 1570 When Saving To Core Data

- 1 answer

What is the difference between both error code when saving core data? Reading from some posts, both of them refer to same error description: The mandatory field is not filled. Is there any more specific different? Because sometimes I get 1560 error code, but I also can get 1570 error code. Thanks!

Ad

Answer

The 1560 is a multiple-errors error. From the Core Data Constants Reference.

NSValidationMultipleErrorsError                  = 1560,
NSValidationMissingMandatoryPropertyError        = 1570,

Sounds like you're getting multiple 1570s which are being delivered in an NSError with the 1560 code.

Ad
source: stackoverflow.com
Ad