Add error condition when attempting to map an RKEntityMapping containing connection mappings with a nil managed object cache.

* Add support for the data source to fail mapping operation with an error.
* Clean up error handling within RKMappingOperation
This commit is contained in:
Blake Watters
2012-10-21 15:47:16 -04:00
parent ef46ff2d1d
commit f93a044561
9 changed files with 74 additions and 40 deletions

View File

@@ -51,8 +51,9 @@
Tells the data source to commit any changes to the underlying data store.
@param mappingOperation The mapping operation that has completed its work.
@param error A pointer to an error to be set in the event that the mapping operation could not be committed.
@return A Boolean value indicating if the changes for the mapping operation were committed successfully.
*/
// TODO: better name?
- (void)commitChangesForMappingOperation:(RKMappingOperation *)mappingOperation;
- (BOOL)commitChangesForMappingOperation:(RKMappingOperation *)mappingOperation error:(NSError **)error;
@end