GNUstep Core Data 0.1
CoreDataErrors.h
1/* Error constant declarations for the GNUstep Core Data framework.
2 Copyright (C) 2005 Free Software Foundation, Inc.
3
4 Written by: Saso Kiselkov <diablos@manga.sk>
5 Date: August 2005
6
7 This file is part of the GNUstep Core Data framework.
8
9 This library is free software; you can redistribute it and/or
10 modify it under the terms of the GNU Lesser General Public
11 License as published by the Free Software Foundation; either
12 version 2.1 of the License, or (at your option) any later version.
13
14 This library is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 Lesser General Public License for more details.
18
19 You should have received a copy of the GNU Lesser General Public
20 License along with this library; if not, write to the Free
21 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
22 */
23
24#ifndef _CoreDataErrors_h_
25#define _CoreDataErrors_h_
26
27@class NSString;
28
29extern NSString * const NSCoreDataErrorDomain;
30
31// Error user info dictionary keys in CoreData errors.
32extern NSString * const NSDetailedErrorsKey;
33extern NSString * const NSValidationObjectErrorKey;
34extern NSString * const NSValidationKeyErrorKey;
35extern NSString * const NSValidationPredicateErrorKey;
36extern NSString * const NSValidationValueErrorKey;
37extern NSString * const NSAffectedStoresErrorKey;
38extern NSString * const NSAffectedObjectsErrorKey;
39
40// Core data error codes.
41enum {
47 NSValidationValueOfIncorrectClassError = 10000000,
53 NSValidationValueHasIncorrectEntityError = 10000010,
54
55 NSManagedObjectValidationError = 1550,
56 NSValidationMultipleErrorsError = 1560,
57 NSValidationMissingMandatoryPropertyError = 1570,
58 NSValidationRelationshipLacksMinimumCountError = 1580,
59 NSValidationRelationshipExceedsMaximumCountError = 1590,
60 NSValidationRelationshipDeniedDeleteError = 1600,
61 NSValidationNumberTooLargeError = 1610,
62 NSValidationNumberTooSmallError = 1620,
63 NSValidationDateTooLateError = 1630,
64 NSValidationDateTooSoonError = 1640,
65 NSValidationInvalidDateError = 1650,
66 NSValidationStringTooLongError = 1660,
67 NSValidationStringTooShortError = 1670,
68 NSValidationStringPatternMatchingError = 1680,
69 NSManagedObjectContextLockingError = 132000,
70 NSPersistentStoreCoordinatorLockingError = 132010,
71 NSManagedObjectReferentialIntegrityError = 133000,
72 NSManagedObjectExternalRelationshipError = 133010,
73 NSManagedObjectMergeError = 133020,
74 NSPersistentStoreInvalidTypeError = 134000,
75 NSPersistentStoreTypeMismatchError = 134010,
76 NSPersistentStoreIncompatibleSchemaError = 134020,
77 NSPersistentStoreSaveError = 134030,
78 NSPersistentStoreIncompleteSaveError = 134040,
83 NSPersistentStoreInitializationError = 10100000
84};
85
86#endif // _CoreDataErrors_h_