public class

ApiException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.google.android.gms.common.api.ApiException
Known Direct Subclasses

Class Overview

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

Summary

Fields
protected final Status mStatus
Public Constructors
ApiException(Status status)
Create an ApiException from a Status.
Public Methods
int getStatusCode()
Indicates the status of the operation.
String getStatusMessage()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Fields

protected final Status mStatus

Public Constructors

public ApiException (Status status)

Create an ApiException from a Status.

Parameters
status Status: the Status instance containing a message and code.

Public Methods

public int getStatusCode ()

Indicates the status of the operation.

Returns
int 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 ()

Returns
String