AccountKitRequestError
This class is no longer available in the most recent version of the SDK.

This class represents an error that occurred during an AccountKit request.

Extends:Object
Package:accountkit
Constructors
AccountKitRequestError(int, int, int, String, String, String, AccountKitException)
public AccountKitRequestError(int requestStatusCode, int errorCode, int subErrorCode, String errorType, String errorMessage, String userErrorMessage, AccountKitException exception)
ParameterDescription
requestStatusCode
errorCode
subErrorCode
errorType
errorMessage
userErrorMessage
exception
AccountKitRequestError(AccountKitException)
public AccountKitRequestError(AccountKitException exception)
ParameterDescription
exception
Instance Methods
getErrorCode()

Returns the error code returned from Facebook.

public int getErrorCode()
Returns
The error code returned from Facebook
getErrorMessage()

Returns the error message returned from Facebook.

public String getErrorMessage()
Returns
The error message returned from Facebook
getErrorType()

Returns the type of error as a raw string.

public String getErrorType()
Returns
The type of error as a raw string
getException()

Returns the exception associated with this request, if any.

public AccountKitException getException()
Returns
The exception associated with this request
getRequestStatusCode()

Returns the HTTP status code for this particular request.

public int getRequestStatusCode()
Returns
The HTTP status code for the request
getSubErrorCode()

Returns the sub error code

public int getSubErrorCode()
Returns
The sub error code
getUserErrorMessage()

Returns the user facing error message.

public String getUserErrorMessage()
Returns
The user facing message
Constants
INVALID_ERROR_CODE
Represents an invalid or unknown error code from the server.
public static final int INVALID_ERROR_CODE
INVALID_HTTP_STATUS_CODE
Indicates that there was no valid HTTP status code returned, indicating that either the error occurred locally, before the request was sent, or that something went wrong with the HTTP connection. Check the exception from AccountKitRequestError.getException();
public static final int INVALID_HTTP_STATUS_CODE