Enumeration

Validation Error Codes

Error codes related to validation of managed object properties.

Declaration

enum : NSInteger {
    ...
};

Overview

For additional error codes, including NSValidationErrorMinimum and NSValidationErrorMaximum, see NSError.

Topics

Constants

NSCoreDataError

Error code to denote a general Core Data error.

NSEntityMigrationPolicyError

Error code to denote that migration failed during processing of an entity migration policy.

NSExternalRecordImportError

Error code to denote a general error encountered while importing external records.

NSInferredMappingModelError

Error code to denote a problem with the creation of an inferred mapping model.

NSManagedObjectConstraintMergeError

Error code to denote a problem with the merging of instances of a managed object.

NSManagedObjectConstraintValidationError

Error code to denote a problem with the validation of a managed object.

NSManagedObjectContextLockingError

Error code to denote an inability to acquire a lock in a managed object context.

NSManagedObjectExternalRelationshipError

Error code to denote that an object being saved has a relationship containing an object from another store.

NSManagedObjectMergeError

Error code to denote that a merge policy failed—Core Data is unable to complete merging.

NSManagedObjectReferentialIntegrityError

Error code to denote an attempt to fire a fault pointing to an object that does not exist.

NSManagedObjectValidationError

Error code to denote a generic validation error.

NSMigrationCancelledError

Error code to denote that migration failed due to manual cancellation.

NSMigrationConstraintViolationError

Error code to denote a problem with the validation of a managed object during a migration.

NSMigrationError

Error code to denote a general migration error.

NSMigrationManagerDestinationStoreError

Error code to denote that migration failed due to a problem with the destination data store.

NSMigrationManagerSourceStoreError

Error code to denote that migration failed due to a problem with the source data store.

NSMigrationMissingMappingModelError

Error code to denote that migration failed due to a missing mapping model.

NSMigrationMissingSourceModelError

Error code to denote that migration failed due to a missing source data model.

NSPersistentHistoryTokenExpiredError

Error code to denote that the persistent history token has expired.

NSPersistentStoreCoordinatorLockingError

Error code to denote an inability to acquire a lock in a persistent store.

NSPersistentStoreIncompatibleSchemaError

Error code to denote that a persistent store returned an error for a save operation.

NSPersistentStoreIncompatibleVersionHashError

Error code to denote that entity version hashes in the store are incompatible with the current managed object model.

NSPersistentStoreIncompleteSaveError

Error code to denote that one or more of the stores returned an error during a save operations.

NSPersistentStoreInvalidTypeError

Error code to denote an unknown persistent store type/format/version.

NSPersistentStoreOpenError

Error code to denote an error occurred while attempting to open a persistent store.

NSPersistentStoreOperationError

Error code to denote that a persistent store operation failed.

NSPersistentStoreSaveConflictsError

Error code to denote that an unresolved merge conflict was encountered during a save. .

NSPersistentStoreSaveError

Error code to denote that a persistent store returned an error for a save operation.

NSPersistentStoreTimeoutError

Error code to denote that Core Data failed to connect to a persistent store within the time specified by NSPersistentStoreTimeoutOption.

NSPersistentStoreTypeMismatchError

Error code returned by a persistent store coordinator if a store is accessed that does not match the specified type.

NSPersistentStoreUnsupportedRequestTypeError

Error code to denote that an NSPersistentStore subclass was passed a request (an instance of NSPersistentStoreRequest) that it did not understand.

NSSQLiteError

Error code to denote a general SQLite error.

NSValidationInvalidURIError

Error code to denote a problem with the validation of a URI property.

NSValidationMultipleErrorsError

Error code to denote an error containing multiple validation errors.

NSValidationMissingMandatoryPropertyError

Error code for a non-optional property with a nil value.

NSValidationRelationshipLacksMinimumCountError

Error code to denote a to-many relationship with too few destination objects.

NSValidationRelationshipExceedsMaximumCountError

Error code to denote a bounded to-many relationship with too many destination objects.

NSValidationRelationshipDeniedDeleteError

Error code to denote some relationship with delete rule NSDeleteRuleDeny is non-empty.

NSValidationNumberTooLargeError

Error code to denote some numerical value is too large.

NSValidationNumberTooSmallError

Error code to denote some numerical value is too small.

NSValidationDateTooLateError

Error code to denote some date value is too late.

NSValidationDateTooSoonError

Error code to denote some date value is too soon.

NSValidationInvalidDateError

Error code to denote some date value fails to match date pattern.

NSValidationStringTooLongError

Error code to denote some string value is too long.

NSValidationStringTooShortError

Error code to denote some string value is too short.

NSValidationStringPatternMatchingError

Error code to denote some string value fails to match some pattern.

See Also

Managing Data Validation

- validateValue:forKey:error:

Validates a property value for a given key.

- validateForDelete:

Determines whether the managed object can be deleted in its current state.

- validateForInsert:

Determines whether the managed object can be inserted in its current state.

- validateForUpdate:

Determines whether the managed object's current state is valid.

NSValidationKeyErrorKey

The error key for the attribute that failed to validate.

NSValidationObjectErrorKey

The error key for the object that failed to validate.

NSValidationPredicateErrorKey

The error key for the predicate that failed to validate.

NSValidationValueErrorKey

The error key for the value that failed to validate.