WCTError Class Reference
| Inherits from | NSError |
|---|---|
| Declared in | WCTError.h |
– initWithType:code:userInfo:
init
- (instancetype)initWithType:(WCTErrorType)type code:(NSInteger)code userInfo:(NSDictionary *)userInfoParameters
type |
|
|---|---|
code |
code |
userInfo |
WCTErrorKey->Value |
Return Value
self
Declared In
WCTError.h
– isOK
Convenient interface for checking code==0.
- (BOOL)isOKReturn Value
YES for no error
Declared In
WCTError.h
– infoForKey:
- (id)infoForKey:(WCTErrorKey)keyParameters
key |
key |
|---|
Return Value
Depending on the key and type, NSString, NSNumber and [nil] may be returned.
See Also
Declared In
WCTError.h