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 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 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
Initializes a generic collection exception using the default settings.
- Returns
- A newly initialized exception
| - (instancetype) initValueForKey: |
|
(NSString *) |
key |
|
Initializes an empty value exception SCL-20058 using the specified key.
- Parameters
-
- Returns
- A newly initialized exception
Initializes an empty value exception SCL-20058 using the specified key and collection name.
- Parameters
-
| key | - value key |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithIndex: |
|
(SCIndex) |
index |
|
Initializes an incorrect index exception SCL-20052 using the specified incorrect index.
- Parameters
-
- Returns
- A newly initialized exception
Initializes an incorrect index exception SCL-20052 using the specified incorrect index and collection name.
- Parameters
-
| index | - incorrect index |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithIndexesCount: |
|
(SCULong) |
indexes |
| objectsCount: |
|
(SCULong) |
objects |
|
|
| |
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) initWithIndexSet: |
|
(NSIndexSet *) |
indexSet |
|
Initializes an incorrect index set exception SCL-20054 using the specified index set.
- Parameters
-
| indexSet | - incorrect index set |
- Returns
- A newly initializes exception
Initializes an incorrect index set exception SCL-20054 using the specified index set and collection name.
- Parameters
-
| indexSet | - incorrect index set |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithItemType: |
|
(NSString *) |
type |
|
Initializes a null object exception SCL-20044 using the specified collection type.
- Parameters
-
- Returns
- A newly initialized exception
Initializes a null object exception SCL-20044 using the specified collection type and collection name.
- Parameters
-
| type | - collection type |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithKey: |
|
(NSString *) |
key |
|
Initializes an incorrect key exception SCL-20056 using the specified incorrect key.
- Parameters
-
| key | - incorrect object key |
- Returns
- A newly initialized exception
| - (instancetype) initWithKey: |
|
(NSString *) |
key |
| name: |
|
(NSString *) |
name |
|
|
| |
Initializes an incorrect key exception SCL-20056 using the specified incorrect key and collection name.
- Parameters
-
| key | - incorrect object key |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithKeysCount: |
|
(SCULong) |
keys |
| objectsCount: |
|
(SCULong) |
objects |
|
|
| |
Initializes a keys and objects count exception SCL-20057 using the specified number of keys and number of objects.
- Parameters
-
| keys | - number of keys |
| objects | - number of objects |
- Returns
- A newly initialized exception
| - (instancetype) initWithName: |
|
(NSString *) |
name |
|
Initializes a generic collection exception using the specified collection name.
- Parameters
-
- 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) initWithNotComparableType: |
|
(NSString *) |
type |
|
Initializes an incomparable object exception SCL-20048 using the specified collection type.
- Parameters
-
- Returns
- A newly initialized exception
Initializes an incomparable object exception SCL-20048 using the specified collection type and collection name.
- Parameters
-
| type | - collection type |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithNotSortableType: |
|
(NSString *) |
type |
|
Initializes an unsortable collection exception SCL-20049 using the specified collection type.
- Parameters
-
- Returns
- A newly initialized exception
Initializes an unsortable collection exception SCL-20049 using the specified collection type and collection name.
- Parameters
-
| type | - collection type |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithObject |
|
|
|
Initializes a source object exception SCL-20045 using the defult settings.
- Returns
- A newly initialized exception
| - (instancetype) initWithRange: |
|
(NSRange) |
range |
|
Initializes an incorrect range exception SCL-20053 using the specified incorrect range.
- Parameters
-
- Returns
- A newly initialized exception
| - (instancetype) initWithRange: |
|
(NSRange) |
range |
| name: |
|
(NSString *) |
name |
|
|
| |
Initializes an incorrect range exception SCL-20053 using the specified incorrect range and collection name.
- Parameters
-
| range | - incorrect range |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithReadOnlyType: |
|
(NSString *) |
type |
|
Initializes a read only exception SCL-20043 using the specified collection type.
- Parameters
-
- Returns
- A newly initialized exception
Initializes a read only exception SCL-20043 using the specified collection type and collection name.
- Parameters
-
| type | - collection type |
| name | - collection name |
- Returns
- A newly initialized exception
| - (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
| - (instancetype) initWithSorterType: |
|
(NSString *) |
type |
|
Initializes an incorect sorter exception SCL-20050 using the specified collection type.
- Parameters
-
- Returns
- A newly initialized exception
Initializes an incorrect sorter exception SCL-20050 using the specified collection type and collection name.
- Parameters
-
| type | - collection type |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithSource |
|
|
|
Initialies a source exception SCL-20041 using the default settings.
- Returns
- A newly initialized exception
| - (instancetype) initWithUnknown: |
|
(NSString *) |
cname |
| type: |
|
(NSString *) |
type |
|
|
| |
Initializes an unknown class exception SCL-20047 using the specified unknown class name and collection type.
- Parameters
-
| cname | - unknown class name |
| type | - collection type |
- Returns
- A newly initialized exception
| - (instancetype) initWithUnknown: |
|
(NSString *) |
cname |
| type: |
|
(NSString *) |
type |
| name: |
|
(NSString *) |
name |
|
|
| |
Initializes an unknown class exception SCL-20047 using the specified unknown class name, collection type and collection name.
- Parameters
-
| cname | - unknown class name |
| type | - collection type |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithUnsupported: |
|
(NSString *) |
cname |
| type: |
|
(NSString *) |
type |
|
|
| |
Initializes an unsupported class exception SCL-20046 using the specified unsupported class name and collection type.
- Parameters
-
| cname | - unsupported class name |
| type | - collection type |
- Returns
- A newly initialized exception
| - (instancetype) initWithUnsupported: |
|
(NSString *) |
cname |
| type: |
|
(NSString *) |
type |
| name: |
|
(NSString *) |
name |
|
|
| |
Initializes an unsupported class exception SCL-20046 using the specified unsupported class name, collection type and collection name.
- Parameters
-
| cname | - unsupported class name |
| type | - collection type |
| name | - collection name |
- Returns
- A newly initialized exception
| - (instancetype) initWithUnsupportedType: |
|
(NSString *) |
type |
|
Initializes an unsupported collection type exception SCL-20042 using the specified unsupported type name.
- Parameters
-
| type | - unsupported type name |
- Returns
- A newly initialized exception
| - (NSString *) collectionName |
|
readnonatomicretain |
Erroneous collection name
| - (NSIndexSet *) indexSet |
|
readnonatomicretain |
| - (NSString *) unsupported |
|
readnonatomicretain |
The documentation for this class was generated from the following files: