com.worklight.wlclient.api
Class WLFailResponse
- java.lang.Object
-
- com.worklight.wlclient.api.WLResponse
-
- com.worklight.wlclient.api.WLFailResponse
-
- Direct Known Subclasses:
- WLProcedureInvocationFailResponse
public class WLFailResponse extends WLResponse
This class extendsWLResponseand contains the status inWLResponse, 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.
-
-
Field Summary
Fields Modifier and Type Field and Description static intHTTP_STATUSstatic java.lang.StringJSON_KEY_FAILURES-
Fields inherited from class com.worklight.wlclient.api.WLResponse
statusText
-
-
Constructor Summary
Constructors Constructor and Description WLFailResponse(Response httpResponse)
-
Method Summary
Methods Modifier and Type Method and Description WLErrorCodegetErrorCode()Deprecated.As of MobileFirst v8.0, replaced by getErrorStatusCode method.
TheWLErrorCodesection contains a description of the possible errors.java.lang.StringgetErrorMsg()This method returns an error message that is for the developer, and not necessarily suitable for the user.java.lang.StringgetErrorStatusCode()java.lang.StringtoString()-
Methods inherited from class com.worklight.wlclient.api.WLResponse
getFirstHeader, getHeaders, getInvocationContext, getResponseBytes, getResponseJSON, getResponseText, getStatus, getStatusText, setResponseJSON, setStatusText
-
-
-
-
Field Detail
-
JSON_KEY_FAILURES
public static final java.lang.String JSON_KEY_FAILURES
- See Also:
- Constant Field Values
-
HTTP_STATUS
public static final int HTTP_STATUS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getErrorStatusCode
public java.lang.String getErrorStatusCode()
- Returns:
- error code
-
getErrorCode
public WLErrorCode getErrorCode()
Deprecated. As of MobileFirst v8.0, replaced by getErrorStatusCode method.
TheWLErrorCodesection contains a description of the possible errors.- Returns:
- possible errors define in
WLErrorCode
-
getErrorMsg
public java.lang.String getErrorMsg()
This method returns an error message that is for the developer, and not necessarily suitable for the user.- Returns:
- A developer oriented errorCode message(no necessarily suitable to display for the user).
-
toString
public java.lang.String toString()
- Overrides:
toStringin classWLResponse
-
-