22 #import <Foundation/Foundation.h>
27 #pragma mark Class Constants
37 #define SCCollectionExceptionClass @"SCCollectionException"
43 #define SCCollectionErrorName @"SCCollection"
47 #pragma mark Error ID Contants
57 #define SCCollectionEIDUnspecified @"SCL-20040"
63 #define SCCollectionEIDSource @"SCL-20041"
69 #define SCCollectionEIDType @"SCL-20042"
75 #define SCCollectionEIDReadOnly @"SCL-20043"
81 #define SCCollectionEIDItem @"SCL-20044"
87 #define SCCollectionEIDObject @"SCL-20045"
93 #define SCCollectionEIDUnsupported @"SCL-20046"
99 #define SCCollectionEIDUnknown @"SCL-20047"
105 #define SCCollectionEIDNotComparable @"SCL-20048"
111 #define SCCollectionEIDNotSortable @"SCL-20049"
117 #define SCCollectionEIDSorter @"SCL-20050"
123 #define SCCollectionEIDIndex @"SCL-20052"
129 #define SCCollectionEIDRange @"SCL-20053"
135 #define SCCollectionEIDIndexSet @"SCL-20054"
141 #define SCCollectionEIDIndexSetCount @"SCL-20055"
147 #define SCCollectionEIDKey @"SCL-20056"
153 #define SCCollectionEIDKeysCount @"SCL-20057"
159 #define SCCollectionEIDValue @"SCL-20058"
163 #pragma mark Class Support Types
338 NSString *_collectionName;
340 NSString *_unsupported;
344 NSIndexSet *_indexSet;
351 #pragma mark Instance Properties
361 @property (nonatomic, readonly, retain) NSString *collectionName;
367 @property (nonatomic, readonly, retain) NSString *typeName;
373 @property (nonatomic, readonly, retain) NSString *unsupported;
379 @property (nonatomic, readonly, retain) NSString *unknown;
385 @property (nonatomic, readonly, assign)
SCIndex index;
391 @property (nonatomic, readonly, assign) NSRange range;
397 @property (nonatomic, readonly, retain) NSIndexSet *indexSet;
403 @property (nonatomic, readonly, assign)
SCULong indexesCount;
409 @property (nonatomic, readonly, assign)
SCULong objectsCount;
415 @property (nonatomic, readonly, retain) NSString *key;
421 @property (nonatomic, readonly, assign)
SCULong keysCount;
426 #pragma mark Creating and Initializing the Generic Collection Exceptions
427 + (instancetype)exceptionWithName:(NSString *)name reason:(NSString *)reason code:(
SCInteger)code eid:(NSString *)eid;
428 + (instancetype)exceptionWithReason:(NSString *)reason code:(
SCInteger)code eid:(NSString *)eid;
429 + (instancetype)exceptionWithName:(NSString *)name;
430 + (instancetype)exception;
431 - (instancetype)initWithName:(NSString *)name reason:(NSString *)reason code:(
SCInteger)code eid:(NSString *)eid;
432 - (instancetype)initWithReason:(NSString *)reason code:(
SCInteger)code eid:(NSString *)eid;
435 #pragma mark Creating Source Exception (SCL-20041)
436 + (instancetype)exceptionWithSource;
439 #pragma mark Creating Unsupported Collection Type Exception (SCL-20042)
440 + (instancetype)exceptionWithUnsupportedType:(NSString *)type;
443 #pragma mark Creating Read Only Exception (SCL-20043)
444 + (instancetype)exceptionWithReadOnlyType:(NSString *)type name:(NSString *)name;
445 + (instancetype)exceptionWithReadOnlyType:(NSString *)type;
448 #pragma mark Creating Null Object Exception (SCL-20044)
449 + (instancetype)exceptionWithItemType:(NSString *)type name:(NSString *)name;
450 + (instancetype)exceptionWithItemType:(NSString *)type;
453 #pragma mark Creating Source Object Exception (SCL-20045)
454 + (instancetype)exceptionWithObject;
457 #pragma mark Creating Unsupported Class Exception (SCL-20046)
458 + (instancetype)exceptionWithUnsupported:(NSString *)cname type:(NSString *)type name:(NSString *)name;
459 + (instancetype)exceptionWithUnsupported:(NSString *)cname type:(NSString *)type;
462 #pragma mark Creating Unknown Class Exception (SCL-20047)
463 + (instancetype)exceptionWithUnknown:(NSString *)cname type:(NSString *)type name:(NSString *)name;
464 + (instancetype)exceptionWithUnknown:(NSString *)cname type:(NSString *)type;
467 #pragma mark Creating Incomparable Object Exception (SCL-20048)
468 + (instancetype)exceptionWithNotComparableType:(NSString *)type name:(NSString *)name;
469 + (instancetype)exceptionWithNotComparableType:(NSString *)type;
472 #pragma mark Creating Unsortable Collection Exception (SCL-20049)
473 + (instancetype)exceptionWithNotSortableType:(NSString *)type name:(NSString *)name;
474 + (instancetype)exceptionWithNotSortableType:(NSString *)type;
477 #pragma mark Creating Incorrect Sorter Exception (SCL-20050)
478 + (instancetype)exceptionWithSorterType:(NSString *)type name:(NSString *)name;
479 + (instancetype)exceptionWithSorterType:(NSString *)type;
482 #pragma mark Creating Incorrect Index Exception (SCL-20052)
483 + (instancetype)exceptionWithIndex:(
SCIndex)index name:(NSString *)name;
484 + (instancetype)exceptionWithIndex:(
SCIndex)index;
487 #pragma mark Creating Incorrect Range Exception (SCL-20053)
488 + (instancetype)exceptionWithRange:(NSRange)range name:(NSString *)name;
489 + (instancetype)exceptionWithRange:(NSRange)range;
492 #pragma mark Creating Incorrect Index Set Exception (SCL-20054)
493 + (instancetype)exceptionWithIndexSet:(NSIndexSet *)indexSet name:(NSString *)name;
494 + (instancetype)exceptionWithIndexSet:(NSIndexSet *)indexSet;
497 #pragma mark Creating Indexes and Objects Count Exception (SCL-20055)
498 + (instancetype)exceptionWithIndexesCount:(
SCULong)indexes objectsCount:(
SCULong)objects;
501 #pragma mark Creating Incorrect Key Exception (SCL-20056)
502 + (instancetype)exceptionWithKey:(NSString *)key name:(NSString *)name;
503 + (instancetype)exceptionWithKey:(NSString *)key;
506 #pragma mark Creating Keys and Objects Count Exception (SCL-20057)
507 + (instancetype)exceptionWithKeysCount:(
SCULong)keys objectsCount:(
SCULong)objects;
510 #pragma mark Creating Empty Value Exception (SCL-20058)
511 + (instancetype)exceptionValueForKey:(NSString *)key name:(NSString *)name;
512 + (instancetype)exceptionValueForKey:(NSString *)key;
Definition: SCCollectionException.h:255
uint64_t SCULong
Definition: SCTypes.h:94
Definition: SCCollectionException.h:202
Definition: SCCollectionException.h:237
Definition: SCCollectionException.h:273
int32_t SCInteger
Definition: SCTypes.h:149
Definition: SCCollectionException.h:190
Definition: SCCollectionException.h:261
Parent class of all library exceptions.
Definition: SCException.h:72
SCCollectionError
Definition: SCCollectionException.h:173
Definition: SCCollectionException.h:267
Definition: SCCollectionException.h:279
Definition: SCCollectionException.h:226
Definition: SCCollectionException.h:243
Definition: SCCollectionException.h:249
Definition: SCCollectionException.h:208
Definition: SCCollectionException.h:232
Definition: SCCollectionException.h:184
Definition: SCCollectionException.h:196
Collection types protocols header file.
Definition: SCCollectionException.h:178
Definition: SCCollectionException.h:214
Exception SCException header file.
NSUInteger SCIndex
Definition: SCCollectionProtocols.h:53
Definition: SCCollectionException.h:220
Exception class SCCollectionException.
Definition: SCCollectionException.h:337