NSError(SPiDError) Category Reference
| Declared in | NSError+SPiDError.h NSError+SPiDError.m |
Tasks
-
+ errorFromJSONData:Creates a new
NSErrorwith SPiD OAuth2 domain and given dictionary. -
+ oauth2ErrorWithString:Creates a new
NSErrorwith SPiD OAuth2 domain and the given string. -
+ oauth2ErrorWithCode:description:reason:Creates a new
NSErrorwith SPiD OAuth2 domain and the given paramters -
+ apiErrorWithCode:description:reason:Creates a new
NSErrorwith SPiD API domain and the given paramters -
+ getSPiDOAuth2ErrorCode:
Class Methods
apiErrorWithCode:description:reason:
Creates a new NSError with SPiD API domain and the given paramters
+ (NSError *)apiErrorWithCode:(NSInteger)code description:(NSString *)description reason:(NSString *)reasonParameters
- code
Error code.
- description
Error description.
- reason
Error reason.
Return Value
Returns NSError with the given data.
Discussion
Warning: Not implemented yet
Declared In
NSError+SPiDError.herrorFromJSONData:
Creates a new NSError with SPiD OAuth2 domain and given dictionary.
+ (NSError *)errorFromJSONData:(NSDictionary *)dictionaryParameters
- dictionary
Dictionary containing error data received from SPiD
Return Value
Returns NSError with the given data.
Declared In
NSError+SPiDError.hoauth2ErrorWithCode:description:reason:
Creates a new NSError with SPiD OAuth2 domain and the given paramters
+ (NSError *)oauth2ErrorWithCode:(NSInteger)code description:(NSString *)description reason:(NSString *)reasonParameters
- code
Error code.
- description
Error description.
- reason
Error reason.
Return Value
Returns NSError with the given data.
Declared In
NSError+SPiDError.h