26 #pragma mark Class Constants
36 #define SCCollectionExceptionClass @"SCCollectionException"
42 #define SCCollectionErrorName @"SCCollection"
46 #pragma mark Error ID Contants
56 #define SCCollectionEIDUnspecified @"SCL-20040"
62 #define SCCollectionEIDSource @"SCL-20041"
68 #define SCCollectionEIDType @"SCL-20042"
74 #define SCCollectionEIDReadOnly @"SCL-20043"
80 #define SCCollectionEIDItem @"SCL-20044"
86 #define SCCollectionEIDObject @"SCL-20045"
92 #define SCCollectionEIDUnsupported @"SCL-20046"
98 #define SCCollectionEIDUnknown @"SCL-20047"
104 #define SCCollectionEIDNotComparable @"SCL-20048"
110 #define SCCollectionEIDNotSortable @"SCL-20049"
116 #define SCCollectionEIDSorter @"SCL-20050"
122 #define SCCollectionEIDIndex @"SCL-20052"
128 #define SCCollectionEIDRange @"SCL-20053"
134 #define SCCollectionEIDIndexSet @"SCL-20054"
140 #define SCCollectionEIDIndexSetCount @"SCL-20055"
146 #define SCCollectionEIDKey @"SCL-20056"
152 #define SCCollectionEIDKeysCount @"SCL-20057"
158 #define SCCollectionEIDValue @"SCL-20058"
162 #pragma mark Class Support Types
337 NSString *fCollectionName;
339 NSString *fUnsupported;
343 NSIndexSet *fIndexSet;
350 #pragma mark Instance Properties
360 @property (nonatomic, readonly, retain) NSString *collectionName;
366 @property (nonatomic, readonly, retain) NSString *typeName;
372 @property (nonatomic, readonly, retain) NSString *unsupported;
378 @property (nonatomic, readonly, retain) NSString *unknown;
384 @property (nonatomic, readonly, assign)
SCIndex index;
390 @property (nonatomic, readonly, assign) NSRange range;
396 @property (nonatomic, readonly, retain) NSIndexSet *indexSet;
402 @property (nonatomic, readonly, assign)
SCULong indexesCount;
408 @property (nonatomic, readonly, assign)
SCULong objectsCount;
414 @property (nonatomic, readonly, retain) NSString *key;
420 @property (nonatomic, readonly, assign)
SCULong keysCount;
425 #pragma mark Creating and Initializing the Generic Collection Exceptions
426 + (instancetype)exceptionWithName:(NSString *)name reason:(NSString *)reason code:(
SCInteger)code eid:(NSString *)eid;
427 + (instancetype)exceptionWithReason:(NSString *)reason code:(
SCInteger)code eid:(NSString *)eid;
428 + (instancetype)exceptionWithName:(NSString *)name;
429 + (instancetype)exception;
430 - (instancetype)initWithName:(NSString *)name reason:(NSString *)reason code:(
SCInteger)code eid:(NSString *)eid;
431 - (instancetype)initWithReason:(NSString *)reason code:(
SCInteger)code eid:(NSString *)eid;
432 - (instancetype)initWithName:(NSString *)name;
433 - (instancetype)init;
436 #pragma mark Creating and Initializing Source Exception (SCL-20041)
437 + (instancetype)exceptionWithSource;
438 - (instancetype)initWithSource;
441 #pragma mark Creating and Initializing Unsupported Collection Type Exception (SCL-20042)
442 + (instancetype)exceptionWithUnsupportedType:(NSString *)type;
443 - (instancetype)initWithUnsupportedType:(NSString *)type;
446 #pragma mark Creating and Initializing Read Only Exception (SCL-20043)
447 + (instancetype)exceptionWithReadOnlyType:(NSString *)type name:(NSString *)name;
448 + (instancetype)exceptionWithReadOnlyType:(NSString *)type;
449 - (instancetype)initWithReadOnlyType:(NSString *)type name:(NSString *)name;
450 - (instancetype)initWithReadOnlyType:(NSString *)type;
453 #pragma mark Creating and Initializing Null Object Exception (SCL-20044)
454 + (instancetype)exceptionWithItemType:(NSString *)type name:(NSString *)name;
455 + (instancetype)exceptionWithItemType:(NSString *)type;
456 - (instancetype)initWithItemType:(NSString *)type name:(NSString *)name;
457 - (instancetype)initWithItemType:(NSString *)type;
460 #pragma mark Creating and Initializing Source Object Exception (SCL-20045)
461 + (instancetype)exceptionWithObject;
462 - (instancetype)initWithObject;
465 #pragma mark Creating and Initializing Unsupported Class Exception (SCL-20046)
466 + (instancetype)exceptionWithUnsupported:(NSString *)cname type:(NSString *)type name:(NSString *)name;
467 + (instancetype)exceptionWithUnsupported:(NSString *)cname type:(NSString *)type;
468 - (instancetype)initWithUnsupported:(NSString *)cname type:(NSString *)type name:(NSString *)name;
469 - (instancetype)initWithUnsupported:(NSString *)cname type:(NSString *)type;
472 #pragma mark Creating and Initializing Unknown Class Exception (SCL-20047)
473 + (instancetype)exceptionWithUnknown:(NSString *)cname type:(NSString *)type name:(NSString *)name;
474 + (instancetype)exceptionWithUnknown:(NSString *)cname type:(NSString *)type;
475 - (instancetype)initWithUnknown:(NSString *)cname type:(NSString *)type name:(NSString *)name;
476 - (instancetype)initWithUnknown:(NSString *)cname type:(NSString *)type;
479 #pragma mark Creating and Initializing Incomparable Object Exception (SCL-20048)
480 + (instancetype)exceptionWithNotComparableType:(NSString *)type name:(NSString *)name;
481 + (instancetype)exceptionWithNotComparableType:(NSString *)type;
482 - (instancetype)initWithNotComparableType:(NSString *)type name:(NSString *)name;
483 - (instancetype)initWithNotComparableType:(NSString *)type;
486 #pragma mark Creating and Initializing Unsortable Collection Exception (SCL-20049)
487 + (instancetype)exceptionWithNotSortableType:(NSString *)type name:(NSString *)name;
488 + (instancetype)exceptionWithNotSortableType:(NSString *)type;
489 - (instancetype)initWithNotSortableType:(NSString *)type name:(NSString *)name;
490 - (instancetype)initWithNotSortableType:(NSString *)type;
493 #pragma mark Creating and Initializing Incorrect Sorter Exception (SCL-20050)
494 + (instancetype)exceptionWithSorterType:(NSString *)type name:(NSString *)name;
495 + (instancetype)exceptionWithSorterType:(NSString *)type;
496 - (instancetype)initWithSorterType:(NSString *)type name:(NSString *)name;
497 - (instancetype)initWithSorterType:(NSString *)type;
500 #pragma mark Creating and Initializing Incorrect Index Exception (SCL-20052)
501 + (instancetype)exceptionWithIndex:(
SCIndex)index name:(NSString *)name;
502 + (instancetype)exceptionWithIndex:(
SCIndex)index;
503 - (instancetype)initWithIndex:(
SCIndex)index name:(NSString *)name;
504 - (instancetype)initWithIndex:(
SCIndex)index;
507 #pragma mark Creating and Initializing Incorrect Range Exception (SCL-20053)
508 + (instancetype)exceptionWithRange:(NSRange)range name:(NSString *)name;
509 + (instancetype)exceptionWithRange:(NSRange)range;
510 - (instancetype)initWithRange:(NSRange)range name:(NSString *)name;
511 - (instancetype)initWithRange:(NSRange)range;
514 #pragma mark Creating and Initializing Incorrect Index Set Exception (SCL-20054)
515 + (instancetype)exceptionWithIndexSet:(NSIndexSet *)indexSet name:(NSString *)name;
516 + (instancetype)exceptionWithIndexSet:(NSIndexSet *)indexSet;
517 - (instancetype)initWithIndexSet:(NSIndexSet *)indexSet name:(NSString *)name;
518 - (instancetype)initWithIndexSet:(NSIndexSet *)indexSet;
521 #pragma mark Creating and Initializing Indexes and Objects Count Exception (SCL-20055)
522 + (instancetype)exceptionWithIndexesCount:(
SCULong)indexes objectsCount:(
SCULong)objects;
523 - (instancetype)initWithIndexesCount:(
SCULong)indexes objectsCount:(
SCULong)objects;
526 #pragma mark Creating and Initializing Incorrect Key Exception (SCL-20056)
527 + (instancetype)exceptionWithKey:(NSString *)key name:(NSString *)name;
528 + (instancetype)exceptionWithKey:(NSString *)key;
529 - (instancetype)initWithKey:(NSString *)key name:(NSString *)name;
530 - (instancetype)initWithKey:(NSString *)key;
533 #pragma mark Creating and Initializing Keys and Objects Count Exception (SCL-20057)
534 + (instancetype)exceptionWithKeysCount:(
SCULong)keys objectsCount:(
SCULong)objects;
535 - (instancetype)initWithKeysCount:(
SCULong)keys objectsCount:(
SCULong)objects;
538 #pragma mark Creating and Initializing Empty Value Exception (SCL-20058)
539 + (instancetype)exceptionValueForKey:(NSString *)key name:(NSString *)name;
540 + (instancetype)exceptionValueForKey:(NSString *)key;
541 - (instancetype)initValueForKey:(NSString *)key name:(NSString *)name;
542 - (instancetype)initValueForKey:(NSString *)key;
Definition: SCCollectionException.h:254
uint64_t SCULong
Definition: SCTypes.h:82
Definition: SCCollectionException.h:201
Definition: SCCollectionException.h:236
Definition: SCCollectionException.h:272
int32_t SCInteger
Definition: SCTypes.h:52
Definition: SCCollectionException.h:189
Definition: SCCollectionException.h:260
Parent class of all library exceptions.
Definition: SCException.h:71
SCCollectionError
Definition: SCCollectionException.h:172
Definition: SCCollectionException.h:266
Definition: SCCollectionException.h:278
Definition: SCCollectionException.h:225
Definition: SCCollectionException.h:242
Definition: SCCollectionException.h:248
Definition: SCCollectionException.h:207
Definition: SCCollectionException.h:231
Definition: SCCollectionException.h:183
Definition: SCCollectionException.h:195
Definition: SCCollectionException.h:177
Definition: SCCollectionException.h:213
Class SCCollection header file.
Exception SCException header file.
NSUInteger SCIndex
Definition: SCCollectionProtocols.h:50
Definition: SCCollectionException.h:219
Exception class SCCollectionException.
Definition: SCCollectionException.h:336