This class represents an error that occurred during an AccountKit request.
Extends: | Object |
Package: | accountkit |
AccountKitRequestError(int, int, int, String, String, String, AccountKitException)
public AccountKitRequestError(int requestStatusCode, int errorCode, int subErrorCode, String errorType, String errorMessage, String userErrorMessage, AccountKitException exception)
Parameter | Description |
---|---|
requestStatusCode | |
errorCode | |
subErrorCode | |
errorType | |
errorMessage | |
userErrorMessage | |
exception |
AccountKitRequestError(AccountKitException)
public AccountKitRequestError(AccountKitException exception)
Parameter | Description |
---|---|
exception |
getErrorCode()
Returns the error code returned from Facebook.
public int getErrorCode()
getErrorMessage()
Returns the error message returned from Facebook.
public String getErrorMessage()
getErrorType()
Returns the type of error as a raw string.
public String getErrorType()
getException()
Returns the exception associated with this request, if any.
public AccountKitException getException()
getRequestStatusCode()
Returns the HTTP status code for this particular request.
public int getRequestStatusCode()
getSubErrorCode()
Returns the sub error code
public int getSubErrorCode()
getUserErrorMessage()
Returns the user facing error message.
public String getUserErrorMessage()
INVALID_ERROR_CODE
public static final int INVALID_ERROR_CODE
INVALID_HTTP_STATUS_CODE
public static final int INVALID_HTTP_STATUS_CODE