WCTError Class Reference

Inherits from NSError
Declared in WCTError.h

Overview

Detailed error

– initWithType:code:userInfo:

init

- (instancetype)initWithType:(WCTErrorType)type code:(NSInteger)code userInfo:(NSDictionary *)userInfo

Parameters

type

type

code

code

userInfo

WCTErrorKey->Value

Return Value

self

Declared In

WCTError.h

  type

@property (nonatomic, readonly) WCTErrorType type

See Also

Declared In

WCTError.h

– isOK

Convenient interface for checking code==0.

- (BOOL)isOK

Return Value

YES for no error

Declared In

WCTError.h

– infoForKey:

- (id)infoForKey:(WCTErrorKey)key

Parameters

key

key

Return Value

Depending on the key and type, NSString, NSNumber and [nil] may be returned.

See Also

Declared In

WCTError.h