WLFailResponse Class Reference
Inherits from | WLResponse : NSObject |
Declared in | WLFailResponse.h |
Derived from WLResponse, containing error codes and messages in addition to the status in WLResponse. Contains the original response data object from the server as well.
Tasks
clientErrorCode property
errorMsg property
+ getErrorMessageFromCode:
+ getErrorMessageFromJSON:
+ getWLErrorCodeFromJSON:
Properties
clientErrorCode
The possible errors are described in the WLErrorCode section.
@property (nonatomic) WLClientErrorCode *clientErrorCode
Declared In
WLFailResponse.h
errorMsg
An error message for the developer, which is not necessarily suitable for displaying to the end user.
@property (nonatomic, strong) NSString *errorMsg
Declared In
WLFailResponse.h
Class Methods
getErrorMessageFromCode:
This method returns a string message from a WLErrorCode.
+ (NSString *)getErrorMessageFromCode:(WLClientErrorCode)code
Declared In
WLFailResponse.h
getErrorMessageFromJSON:
This method returns an error message from the JSON response.
+ (NSString *)getErrorMessageFromJSON:(NSDictionary *)jsonResponse
Declared In
WLFailResponse.h
getWLErrorCodeFromJSON:
This method returns the WLErrorCode from the JSON response.
+ (WLClientErrorCode)getWLErrorCodeFromJSON:(NSDictionary *)jsonResponse
Declared In
WLFailResponse.h
© Copyright IBM Corp. 2017