ApiException

public class ApiException extends Exception
Known Direct Subclasses

Exception to be returned by a Task when a call to Google Play services has failed.

Field Summary

protected final Status mStatus This field is deprecated. use getStatus() instead.

Public Constructor Summary

ApiException(Status status)
Create an ApiException from a Status.

Public Method Summary

Status
getStatus()
Returns the status of the operation.
int
getStatusCode()
Indicates the status of the operation.
String
getStatusMessage()
This method is deprecated. use Throwable.getMessage() for a summary of the cause.

Inherited Method Summary

Fields

protected final Status mStatus

This field is deprecated.
use getStatus() instead.

Public Constructors

public ApiException (Status status)

Create an ApiException from a Status.

Parameters
status the Status instance containing a message and code.

Public Methods

public Status getStatus ()

Returns the status of the operation.

public int getStatusCode ()

Indicates the status of the operation.

Returns
  • Status code resulting from the operation. The value is one of the constants in CommonStatusCodes or specific to the API in use.

public String getStatusMessage ()

This method is deprecated.
use Throwable.getMessage() for a summary of the cause.