GNUstep Core Data
0.1
|
00001 /* Error constant declarations for the GNUstep Core Data framework. 00002 Copyright (C) 2005 Free Software Foundation, Inc. 00003 00004 Written by: Saso Kiselkov <diablos@manga.sk> 00005 Date: August 2005 00006 00007 This file is part of the GNUstep Core Data framework. 00008 00009 This library is free software; you can redistribute it and/or 00010 modify it under the terms of the GNU Lesser General Public 00011 License as published by the Free Software Foundation; either 00012 version 2.1 of the License, or (at your option) any later version. 00013 00014 This library is distributed in the hope that it will be useful, 00015 but WITHOUT ANY WARRANTY; without even the implied warranty of 00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00017 Lesser General Public License for more details. 00018 00019 You should have received a copy of the GNU Lesser General Public 00020 License along with this library; if not, write to the Free 00021 Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA. 00022 */ 00023 00024 #ifndef _CoreDataErrors_h_ 00025 #define _CoreDataErrors_h_ 00026 00027 @class NSString; 00028 00029 extern NSString * const NSCoreDataErrorDomain; 00030 00031 // Error user info dictionary keys in CoreData errors. 00032 extern NSString * const NSDetailedErrorsKey; 00033 extern NSString * const NSValidationObjectErrorKey; 00034 extern NSString * const NSValidationKeyErrorKey; 00035 extern NSString * const NSValidationPredicateErrorKey; 00036 extern NSString * const NSValidationValueErrorKey; 00037 extern NSString * const NSAffectedStoresErrorKey; 00038 extern NSString * const NSAffectedObjectsErrorKey; 00039 00040 // Core data error codes. 00041 enum { 00047 NSValidationValueOfIncorrectClassError = 10000000, 00053 NSValidationValueHasIncorrectEntityError = 10000010, 00054 00055 NSManagedObjectValidationError = 1550, 00056 NSValidationMultipleErrorsError = 1560, 00057 NSValidationMissingMandatoryPropertyError = 1570, 00058 NSValidationRelationshipLacksMinimumCountError = 1580, 00059 NSValidationRelationshipExceedsMaximumCountError = 1590, 00060 NSValidationRelationshipDeniedDeleteError = 1600, 00061 NSValidationNumberTooLargeError = 1610, 00062 NSValidationNumberTooSmallError = 1620, 00063 NSValidationDateTooLateError = 1630, 00064 NSValidationDateTooSoonError = 1640, 00065 NSValidationInvalidDateError = 1650, 00066 NSValidationStringTooLongError = 1660, 00067 NSValidationStringTooShortError = 1670, 00068 NSValidationStringPatternMatchingError = 1680, 00069 NSManagedObjectContextLockingError = 132000, 00070 NSPersistentStoreCoordinatorLockingError = 132010, 00071 NSManagedObjectReferentialIntegrityError = 133000, 00072 NSManagedObjectExternalRelationshipError = 133010, 00073 NSManagedObjectMergeError = 133020, 00074 NSPersistentStoreInvalidTypeError = 134000, 00075 NSPersistentStoreTypeMismatchError = 134010, 00076 NSPersistentStoreIncompatibleSchemaError = 134020, 00077 NSPersistentStoreSaveError = 134030, 00078 NSPersistentStoreIncompleteSaveError = 134040, 00083 NSPersistentStoreInitializationError = 10100000 00084 }; 00085 00086 #endif // _CoreDataErrors_h_