Exception class SCCollectionException.  
 More...
#import <SCCollectionException.h>
Exception class SCCollectionException. 
- SDK
 - macOS 10.6+, iOS 7.0+, GNUstep 
 
- Since
 - version 1.1.3
 
Declares the collection exceptions.
 Generated exceptions correspond to the following errors: 
 
      
        
          | + (instancetype) exception  | 
           | 
           | 
           | 
        
      
 
Returns a generic collection exception SCL-20040 created by using the default settings. 
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionValueForKey:  | 
           | 
          (NSString *)  | 
          key | 
           | 
        
      
 
Returns an empty value exception SCL-20058 created by using the specified key. 
- Parameters
 - 
  
  
 
- Returns
 - A created exception 
 
 
 
Returns an empty value exception SCL-20058 created by using the specified key and collection name. 
- Parameters
 - 
  
    | key | - value key  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithIndex:  | 
           | 
          (SCIndex)  | 
          index | 
           | 
        
      
 
Returns an incorrect index exception SCL-20052 created by using the specified incorrect index. 
- Parameters
 - 
  
  
 
- Returns
 - A created exception 
 
 
 
Returns an incorrect index exception SCL-20052 created by using the specified incorrect index and collection name. 
- Parameters
 - 
  
    | index | - incorrect index  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithIndexesCount:  | 
           | 
          (SCULong)  | 
          indexes | 
        
        
          | objectsCount: | 
           | 
          (SCULong)  | 
          objects  | 
        
        
           | 
           | 
           |  | 
        
      
 
Returns an indexes and objects count exception SCL-20055 created by using the specified number of indexes and number of objects. 
- Parameters
 - 
  
    | indexes | - number of indexes  | 
    | objects | - number of objects  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithIndexSet:  | 
           | 
          (NSIndexSet *)  | 
          indexSet | 
           | 
        
      
 
Returns an incorrect index set exception SCL-20054 created by using the specified index set. 
- Parameters
 - 
  
    | indexSet | - incorrect index set  | 
  
   
- Returns
 - A created exception 
 
 
 
Returns an incorrect index set exception SCL-20054 created by using the specified index set and collection name. 
- Parameters
 - 
  
    | indexSet | - incorrect index set  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithItemType:  | 
           | 
          (NSString *)  | 
          type | 
           | 
        
      
 
Returns a null object exception SCL-20044 created by using the specified collection type. 
- Parameters
 - 
  
  
 
- Returns
 - A created exception 
 
 
 
Returns a null object exception SCL-20044 created by using the specified collection type and collection name. 
- Parameters
 - 
  
    | type | - collection type  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithKey:  | 
           | 
          (NSString *)  | 
          key | 
           | 
        
      
 
Returns an incorrect key exception SCL-20056 created by using the specified incorrect key. 
- Parameters
 - 
  
    | key | - incorrect object key  | 
  
   
- Returns
 - A created exception 
 
 
 
Returns an incorrect key exception SCL-20056 created by using the specified incorrect key and collection name. 
- Parameters
 - 
  
    | key | - incorrect object key  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithKeysCount:  | 
           | 
          (SCULong)  | 
          keys | 
        
        
          | objectsCount: | 
           | 
          (SCULong)  | 
          objects  | 
        
        
           | 
           | 
           |  | 
        
      
 
Returns a keys and objects count exception SCL-20057 created by using the specified number of keys and number of objects. 
- Parameters
 - 
  
    | keys | - number of keys  | 
    | objects | - number of objects  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithName:  | 
           | 
          (NSString *)  | 
          name | 
           | 
        
      
 
Returns a generic collection exception SCL-20040 created by using the specified collection name. 
- Parameters
 - 
  
  
 
- Returns
 - A created exception 
 
 
 
Returns an exception created by using the specified collection name, error description, error code and error ID. 
- Parameters
 - 
  
    | name | - collection name  | 
    | reason | - error description  | 
    | code | - error code  | 
    | eid | - error ID  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithNotComparableType:  | 
           | 
          (NSString *)  | 
          type | 
           | 
        
      
 
Returns an incomparable object exception SCL-20048 created by using the specified collection type. 
- Parameters
 - 
  
  
 
- Returns
 - A created exception 
 
 
 
Returns an incomparable object exception SCL-20048 created by using the specified collection type and collection name. 
- Parameters
 - 
  
    | type | - collection type  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithNotSortableType:  | 
           | 
          (NSString *)  | 
          type | 
           | 
        
      
 
Returns an unsortable collection exception SCL-20049 created by using the specified collection type. 
- Parameters
 - 
  
  
 
- Returns
 - A created exception 
 
 
 
Returns an unsortable collection exception SCL-20049 created by using the specified collection type and collection name. 
- Parameters
 - 
  
    | type | - collection type  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithObject  | 
           | 
           | 
           | 
        
      
 
Returns a source object exception SCL-20045 created by using the default settings. 
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithRange:  | 
           | 
          (NSRange)  | 
          range | 
           | 
        
      
 
Returns an incorrect range exception SCL-20053 created by using the specified incorrect range. 
- Parameters
 - 
  
  
 
- Returns
 - A created exception 
 
 
 
Returns an incorrect range exception SCL-20053 created by using the specified incorrect range and collection name. 
- Parameters
 - 
  
    | range | - incorrect range  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithReadOnlyType:  | 
           | 
          (NSString *)  | 
          type | 
           | 
        
      
 
Returns a read only exception SCL-20043 created by using the specified collection type. 
- Parameters
 - 
  
  
 
- Returns
 - A created exception 
 
 
 
Returns a read only exception SCL-20043 created by using the specified collection type and collection name. 
- Parameters
 - 
  
    | type | - collection type  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithReason:  | 
           | 
          (NSString *)  | 
          reason | 
        
        
          | code: | 
           | 
          (SCInteger)  | 
          code | 
        
        
          | eid: | 
           | 
          (NSString *)  | 
          eid  | 
        
        
           | 
           | 
           |  | 
        
      
 
Returns an exception created by using the specified error description, error code and error ID. 
- Parameters
 - 
  
    | reason | - error description  | 
    | code | - error code  | 
    | eid | - error ID  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithSorterType:  | 
           | 
          (NSString *)  | 
          type | 
           | 
        
      
 
Returns an incorrect sorter exception SCL-20050 created by using the specified collection type. 
- Parameters
 - 
  
  
 
- Returns
 - A created exception 
 
 
 
Returns an incorrect sorter exception SCL-20050 created by using the specified collection type and collection name. 
- Parameters
 - 
  
    | type | - collection type  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithSource  | 
           | 
           | 
           | 
        
      
 
Returns a source exception SCL-20041 created by using the defult settings. 
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithUnknown:  | 
           | 
          (NSString *)  | 
          cname | 
        
        
          | type: | 
           | 
          (NSString *)  | 
          type  | 
        
        
           | 
           | 
           |  | 
        
      
 
Returns an unknown class exception SCL-20047 created by using the specified unknown class name and collection type. 
- Parameters
 - 
  
    | cname | - unknown class name  | 
    | type | - collection type  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithUnknown:  | 
           | 
          (NSString *)  | 
          cname | 
        
        
          | type: | 
           | 
          (NSString *)  | 
          type | 
        
        
          | name: | 
           | 
          (NSString *)  | 
          name  | 
        
        
           | 
           | 
           |  | 
        
      
 
Returns an unknown class exception SCL-20047 created by using the specified unknown class name, collection type and collection name. 
- Parameters
 - 
  
    | cname | - unknown class name  | 
    | type | - collection type  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithUnsupported:  | 
           | 
          (NSString *)  | 
          cname | 
        
        
          | type: | 
           | 
          (NSString *)  | 
          type  | 
        
        
           | 
           | 
           |  | 
        
      
 
Returns an unsupported class exception SCL-20046 created by using the specified unsupported class name and collection type. 
- Parameters
 - 
  
    | cname | - unsupported class name  | 
    | type | - collection type  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithUnsupported:  | 
           | 
          (NSString *)  | 
          cname | 
        
        
          | type: | 
           | 
          (NSString *)  | 
          type | 
        
        
          | name: | 
           | 
          (NSString *)  | 
          name  | 
        
        
           | 
           | 
           |  | 
        
      
 
Returns an unsupported class exception SCL-20046 created by using the specified unsupported class name, collection type and collection name. 
- Parameters
 - 
  
    | cname | - unsupported class name  | 
    | type | - collection type  | 
    | name | - collection name  | 
  
   
- Returns
 - A created exception 
 
 
 
      
        
          | + (instancetype) exceptionWithUnsupportedType:  | 
           | 
          (NSString *)  | 
          type | 
           | 
        
      
 
Returns an unsupported collection type exception SCL-20042 created by using the specified unsupported type name. 
- Parameters
 - 
  
    | type | - unsupported type name  | 
  
   
- Returns
 - A created exception 
 
 
 
  
  
      
        
          | - (instancetype) initWithIndexesCount:  | 
           | 
          (SCULong)  | 
          indexes | 
         
        
          | objectsCount: | 
           | 
          (SCULong)  | 
          objects  | 
         
        
           | 
           | 
           |  | 
         
       
   | 
  
implementation   | 
  
 
Initializes an indexes and objects count exception SCL-20055 created by using the specified number of indexes and number of objects. 
- Parameters
 - 
  
    | indexes | - number of indexes  | 
    | objects | - number of objects  | 
  
   
- Returns
 - A newly initialized exception 
 
 
 
      
        
          | - (instancetype) initWithName:  | 
           | 
          (NSString *)  | 
          name | 
        
        
          | reason: | 
           | 
          (NSString *)  | 
          reason | 
        
        
          | code: | 
           | 
          (SCInteger)  | 
          code | 
        
        
          | eid: | 
           | 
          (NSString *)  | 
          eid  | 
        
        
           | 
           | 
           |  | 
        
      
 
Initializes an exception using the specified collection name, error description, error code and error ID. 
- Attention
 - Designed initializer 
 
- Parameters
 - 
  
    | name | - collection name  | 
    | reason | - error description  | 
    | code | - error code  | 
    | eid | - error id  | 
  
   
- Returns
 - A newly initialized exception 
 
Reimplemented from SCException.
 
 
      
        
          | - (instancetype) initWithReason:  | 
           | 
          (NSString *)  | 
          reason | 
        
        
          | code: | 
           | 
          (SCInteger)  | 
          code | 
        
        
          | eid: | 
           | 
          (NSString *)  | 
          eid  | 
        
        
           | 
           | 
           |  | 
        
      
 
Initializes an exception using the specified error description, error code and error ID. 
- Parameters
 - 
  
    | reason | - error description  | 
    | code | - error code  | 
    | eid | - error ID  | 
  
   
- Returns
 - A newly initialized exception 
 
 
 
  
  
      
        
          | - (NSString*) collectionName | 
         
       
   | 
  
readnonatomicretain   | 
  
 
Erroneous collection name 
 
 
  
  
      
        
          | - (NSString*) unsupported | 
         
       
   | 
  
readnonatomicretain   | 
  
 
 
The documentation for this class was generated from the following files: