if (location.href.indexOf('is-external=true') == -1) { parent.document.; } //-->
allClassesLink = document.getElementById("allclasses_navbar_top"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //-->
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 extends
WLResponseand 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 int HTTP_STATUS static java.lang.String JSON_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 WLErrorCode getErrorCode()Deprecated.
As of MobileFirst v8.0, replaced by getErrorStatusCode method.
TheWLErrorCodesection 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()
Methods inherited from class com.worklight.wlclient.api.WLResponse
getFirstHeader, getHeaders, getInvocationContext, getResponseBytes, getResponseJSON, getResponseText, getStatus, getStatusText, setResponseJSON, setStatusText
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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:
toString in classWLResponse
allClassesLink = document.getElementById("allclasses_navbar_bottom"); if(window==top) { allClassesLink.style.display = "block"; } else { allClassesLink.style.display = "none"; } //-->
© Copyright IBM Corp. 2006, 2015. All Rights Reserved.