Mercurial > projects > dstep
comparison dstep/coredata/CoreDataErrors.d @ 16:19885b43130e
Huge update, the bridge actually works now
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Sun, 03 Jan 2010 22:06:11 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
15:7ff919f595d5 | 16:19885b43130e |
---|---|
1 /** | |
2 * Copyright: Copyright (c) 2009 Jacob Carlborg. | |
3 * Authors: Jacob Carlborg | |
4 * Version: Initial created: Sep 25, 2009 | |
5 * License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0) | |
6 */ | |
7 module dstep.coredata.CoreDataErrors; | |
8 | |
9 import dstep.coredata.CoreDataDefines; | |
10 import dstep.foundation.NSObject; | |
11 import dstep.foundation.NSString; | |
12 import dstep.objc.bridge.Bridge; | |
13 import dstep.objc.objc; | |
14 | |
15 import bindings = dstep.coredata.CoreDataErrors_bindings; | |
16 | |
17 private | |
18 { | |
19 NSString NSDetailedErrorsKey_; | |
20 NSString NSValidationObjectErrorKey_; | |
21 NSString NSValidationKeyErrorKey_; | |
22 NSString NSValidationPredicateErrorKey_; | |
23 NSString NSValidationValueErrorKey_; | |
24 NSString NSAffectedStoresErrorKey_; | |
25 NSString NSAffectedObjectsErrorKey_; | |
26 NSString NSSQLiteErrorDomain_; | |
27 } | |
28 | |
29 NSString NSDetailedErrorsKey () | |
30 { | |
31 if (NSDetailedErrorsKey_) | |
32 return NSDetailedErrorsKey_; | |
33 | |
34 return NSDetailedErrorsKey_ = new NSString(bindings.NSDetailedErrorsKey); | |
35 } | |
36 | |
37 NSString NSValidationObjectErrorKey () | |
38 { | |
39 if (NSValidationObjectErrorKey_) | |
40 return NSValidationObjectErrorKey_; | |
41 | |
42 return NSValidationObjectErrorKey_ = new NSString(bindings.NSValidationObjectErrorKey); | |
43 } | |
44 | |
45 NSString NSValidationKeyErrorKey () | |
46 { | |
47 if (NSValidationKeyErrorKey_) | |
48 return NSValidationKeyErrorKey_; | |
49 | |
50 return NSValidationKeyErrorKey_ = new NSString(bindings.NSValidationKeyErrorKey); | |
51 } | |
52 | |
53 NSString NSValidationPredicateErrorKey () | |
54 { | |
55 if (NSValidationPredicateErrorKey_) | |
56 return NSValidationPredicateErrorKey_; | |
57 | |
58 return NSValidationPredicateErrorKey_ = new NSString(bindings.NSValidationPredicateErrorKey); | |
59 } | |
60 | |
61 NSString NSValidationValueErrorKey () | |
62 { | |
63 if (NSValidationValueErrorKey_) | |
64 return NSValidationValueErrorKey_; | |
65 | |
66 return NSValidationValueErrorKey_ = new NSString(bindings.NSValidationValueErrorKey); | |
67 } | |
68 | |
69 NSString NSAffectedStoresErrorKey () | |
70 { | |
71 if (NSAffectedStoresErrorKey_) | |
72 return NSAffectedStoresErrorKey_; | |
73 | |
74 return NSAffectedStoresErrorKey_ = new NSString(bindings.NSAffectedStoresErrorKey); | |
75 } | |
76 | |
77 NSString NSAffectedObjectsErrorKey () | |
78 { | |
79 if (NSAffectedObjectsErrorKey_) | |
80 return NSAffectedObjectsErrorKey_; | |
81 | |
82 return NSAffectedObjectsErrorKey_ = new NSString(bindings.NSAffectedObjectsErrorKey); | |
83 } | |
84 | |
85 NSString NSSQLiteErrorDomain () | |
86 { | |
87 if (NSSQLiteErrorDomain_) | |
88 return NSSQLiteErrorDomain_; | |
89 | |
90 return NSSQLiteErrorDomain_ = new NSString(bindings.NSSQLiteErrorDomain); | |
91 } | |
92 | |
93 enum | |
94 { | |
95 NSManagedObjectValidationError = 1550, | |
96 NSValidationMultipleErrorsError = 1560, | |
97 NSValidationMissingMandatoryPropertyError = 1570, | |
98 NSValidationRelationshipLacksMinimumCountError = 1580, | |
99 NSValidationRelationshipExceedsMaximumCountError = 1590, | |
100 NSValidationRelationshipDeniedDeleteError = 1600, | |
101 NSValidationNumberTooLargeError = 1610, | |
102 NSValidationNumberTooSmallError = 1620, | |
103 NSValidationDateTooLateError = 1630, | |
104 NSValidationDateTooSoonError = 1640, | |
105 NSValidationInvalidDateError = 1650, | |
106 NSValidationStringTooLongError = 1660, | |
107 NSValidationStringTooShortError = 1670, | |
108 NSValidationStringPatternMatchingError = 1680, | |
109 NSManagedObjectContextLockingError = 132000, | |
110 NSPersistentStoreCoordinatorLockingError = 132010, | |
111 NSManagedObjectReferentialIntegrityError = 133000, | |
112 NSManagedObjectExternalRelationshipError = 133010, | |
113 NSManagedObjectMergeError = 133020, | |
114 NSPersistentStoreInvalidTypeError = 134000, | |
115 NSPersistentStoreTypeMismatchError = 134010, | |
116 NSPersistentStoreIncompatibleSchemaError = 134020, | |
117 NSPersistentStoreSaveError = 134030, | |
118 NSPersistentStoreIncompleteSaveError = 134040, | |
119 NSCoreDataError = 134060, | |
120 NSPersistentStoreOperationError = 134070, | |
121 NSPersistentStoreOpenError = 134080, | |
122 NSPersistentStoreTimeoutError = 134090, | |
123 NSPersistentStoreIncompatibleVersionHashError = 134100, | |
124 NSMigrationError = 134110, | |
125 NSMigrationCancelledError = 134120, | |
126 NSMigrationMissingSourceModelError = 134130, | |
127 NSMigrationMissingMappingModelError = 134140, | |
128 NSMigrationManagerSourceStoreError = 134150, | |
129 NSMigrationManagerDestinationStoreError = 134160, | |
130 NSEntityMigrationPolicyError = 134170, | |
131 NSSQLiteError = 134180 | |
132 } | |
133 |