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

Public Constructor Summary

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

Public Method Summary

int
getStatusCode()
Indicates the status of the operation.
String
getStatusMessage()
This method was deprecated. use getMessage() for a summary of the cause.

Inherited Method Summary

Fields

protected final Status mStatus

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 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 was deprecated.
use getMessage() for a summary of the cause.