Used for encapsulating, presenting, and recovery from errors. More...
#import <CPError.h>
Inheritance diagram for CPError:Class Methods | |
| (id) | + alloc |
| (id) | + errorWithDomain:code:userInfo: |
Class Methods inherited from CPObject | |
| (BOOL) | + accessInstanceVariablesDirectly |
| (id) | + allocWithCoder: |
| (BOOL) | + automaticallyNotifiesObserversForKey: |
| (void) | + cancelPreviousPerformRequestsWithTarget: |
| (void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
| (Class) | + class |
| (BOOL) | + conformsToProtocol: |
| (void) | + exposeBinding: |
| (void) | + initialize |
| (IMP) | + instanceMethodForSelector: |
| (BOOL) | + instancesImplementSelector: |
| (BOOL) | + instancesRespondToSelector: |
| (BOOL) | + isBindingExclusive: |
| (BOOL) | + isSubclassOfClass: |
| (CPSet) | + keyPathsForValuesAffectingValueForKey: |
| (void) | + load |
| (id) | + new |
| (void) | + object:performSelector:withObject:afterDelay:inModes: |
| (void) | + setVersion: |
| (Class) | + superclass |
| (int) | + version |
Used for encapsulating, presenting, and recovery from errors.
CPError is toll-free bridged with CFError() methods.
An example of initializing a CPError:
var userInfo =CPLocalizedDescriptionKey: "A localized error description",
CPLocalizedFailureReasonErrorKey: @"A localized failure reason",
CPUnderlyingErrorKey: @"An underlying error message"},err = [CPError errorWithDomain:CPCappuccinoErrorDomain code:-10 userInfo:userInfo];
|
implementation |
|
implementation |
|
implementation |
Provided by category CPError(CPCoding).
|
implementation |
|
implementation |
Provided by category CPError(CPCoding).
|
implementation |
|
implementation |