public class WLFailResponse extends WLResponse
WLResponse
and contains the status in WLResponse
, error codes, and messages.
This class also contains the original response DataObject from the server.
Contains the original response data object from the server as well.Modifier and Type | Field and Description |
---|---|
static int |
HTTP_STATUS |
static java.lang.String |
JSON_KEY_FAILURES |
Constructor and Description |
---|
WLFailResponse(Response httpResponse) |
WLFailResponse(WLErrorCode errorCode,
java.lang.String errorMsg,
WLRequestOptions requestOptions) |
Modifier and Type | Method and Description |
---|---|
WLErrorCode |
getErrorCode()
Deprecated.
As of MobileFirst v8.0, replaced by getErrorStatusCode method.
The WLErrorCode section contains a description of the possible errors. |
java.lang.String |
getErrorMsg()
This method returns an error message that is for the developer, and not necessarily suitable for the user.
|
java.lang.String |
getErrorStatusCode() |
java.lang.String |
toString() |
getFirstHeader, getHeader, getHeaders, getInvocationContext, getOptions, getResponseBytes, getResponseJSON, getResponseText, getStatus, getStatusText, setOptions, setResponseText, setStatusText
public static final java.lang.String JSON_KEY_FAILURES
public static final int HTTP_STATUS
public WLFailResponse(Response httpResponse)
public WLFailResponse(WLErrorCode errorCode, java.lang.String errorMsg, WLRequestOptions requestOptions)
public java.lang.String getErrorStatusCode()
public WLErrorCode getErrorCode()
WLErrorCode
section contains a description of the possible errors.WLErrorCode
public java.lang.String getErrorMsg()
public java.lang.String toString()
toString
in class WLResponse