mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-04-01 22:42:51 +08:00
Other changes include: * Eliminated the RKObjectFactory protocol and implementations. Object mapping instances themselves are now responsible for instantiating target objects for mapping. * Introduced RKObjectAbstractMapping superclass for RKObjectMapping and RKObjectPolymorphicMapping. * Updated example applications to use block object loaders (RKTwitter and RKTwitterCoreData) * Refactored method signatures of RKObjectMapper, RKObjectMapping, and RKObjectMappingProvider to reflect the existence of abstract mapping types. This was necessary to make polymorphic mappings integrate cleanly. * Fixed overlap in RestKit error domains between network and object mapping. fixes #208
18 lines
802 B
Objective-C
18 lines
802 B
Objective-C
//
|
|
// RKObjectMapperError.h
|
|
// RestKit
|
|
//
|
|
// Created by Blake Watters on 5/31/11.
|
|
// Copyright 2011 Two Toasters. All rights reserved.
|
|
//
|
|
|
|
#import "../Support/Errors.h"
|
|
|
|
typedef enum RKObjectMapperErrors {
|
|
RKObjectMapperErrorObjectMappingNotFound = 1001, // No mapping found
|
|
RKObjectMapperErrorObjectMappingTypeMismatch = 1002, // Target class and object mapping are in disagreement
|
|
RKObjectMapperErrorUnmappableContent = 1003, // No mappable attributes or relationships were found
|
|
RKObjectMapperErrorFromMappingResult = 1004, // The error was returned from the mapping result
|
|
RKObjectMapperErrorValidationFailure = 1005 // Generic error code for use when constructing validation errors
|
|
} RKObjectMapperErrorCode;
|