AccountKitRequestError
最新版本的 SDK 已不再提供此課程。

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

伸延:Object
套件: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)
參數說明
requestStatusCode
errorCode
subErrorCode
errorType
errorMessage
userErrorMessage
exception
AccountKitRequestError(AccountKitException)
public AccountKitRequestError(AccountKitException exception)
參數說明
exception
執行個體方法
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
常數
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