2.9.3 (latest) 2.9.2 2.8.1 2.7.2 2.6.0 2.5.1 2.4.1 2.1.2 2.0.1 1.35.2 1.34.1 1.33.4

```java
public class GooglePlayServicesAvailabilityIOException extends UserRecoverableAuthIOException
```
Beta   

Wraps a GooglePlayServicesAvailabilityException into an [IOException](https://docs.oracle.com/javase/8/docs/api/java/io/IOException.html) so it can be
caught directly.

Use [#getConnectionStatusCode()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.extensions.android.gms.auth.GooglePlayServicesAvailabilityIOException.md.txt#com_google_api_client_googleapis_extensions_android_gms_auth_GooglePlayServicesAvailabilityIOException_getConnectionStatusCode__) to display the error dialog. Alternatively, use [#getCause()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.extensions.android.gms.auth.GooglePlayServicesAvailabilityIOException.md.txt#com_google_api_client_googleapis_extensions_android_gms_auth_GooglePlayServicesAvailabilityIOException_getCause__) to get the wrapped GooglePlayServicesAvailabilityException. Example usage:

```java

  catch (final GooglePlayServicesAvailabilityIOException availabilityException) {
   myActivity.runOnUiThread(new Runnable() {
   public void run() {
   Dialog dialog = GooglePlayServicesUtil.getErrorDialog(
      availabilityException.getConnectionStatusCode(),
      myActivity, MyActivity.REQUEST_GOOGLE_PLAY_SERVICES);
   dialog.show();
 }
 }
```

## Inherited Members

[UserRecoverableAuthIOException.getCause()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.extensions.android.gms.auth.UserRecoverableAuthIOException.md.txt#com_google_api_client_googleapis_extensions_android_gms_auth_UserRecoverableAuthIOException_getCause__) [UserRecoverableAuthIOException.getIntent()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.extensions.android.gms.auth.UserRecoverableAuthIOException.md.txt#com_google_api_client_googleapis_extensions_android_gms_auth_UserRecoverableAuthIOException_getIntent__) [Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-) [Throwable.addSuppressed(Throwable)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#addSuppressed-java.lang.Throwable-) [Throwable.fillInStackTrace()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#fillInStackTrace--) [Throwable.getLocalizedMessage()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getLocalizedMessage--) [Throwable.getMessage()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getMessage--) [Throwable.getStackTrace()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getStackTrace--) [Throwable.getSuppressed()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getSuppressed--) [Throwable.initCause(Throwable)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#initCause-java.lang.Throwable-) [Throwable.printStackTrace()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace--) [Throwable.printStackTrace(PrintStream)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintStream-) [Throwable.printStackTrace(PrintWriter)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintWriter-) [Throwable.setStackTrace(StackTraceElement\[\])](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#setStackTrace-java.lang.StackTraceElement[]-) [Throwable.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#toString--)

## Constructors

### GooglePlayServicesAvailabilityIOException(GooglePlayServicesAvailabilityException wrapped)

```java
public GooglePlayServicesAvailabilityIOException(GooglePlayServicesAvailabilityException wrapped)
```

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `wrapped` | `com.google.android.gms.auth.GooglePlayServicesAvailabilityException` |

## Methods

### getCause()

```java
public GooglePlayServicesAvailabilityException getCause()
```

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `com.google.android.gms.auth.GooglePlayServicesAvailabilityException` |   |

**Overrides** [UserRecoverableAuthIOException.getCause()](https://docs.cloud.google.com/java/docs/reference/google-api-client/latest/com.google.api.client.googleapis.extensions.android.gms.auth.UserRecoverableAuthIOException.md.txt#com_google_api_client_googleapis_extensions_android_gms_auth_UserRecoverableAuthIOException_getCause__)

### getConnectionStatusCode()

```java
public final int getConnectionStatusCode()
```
Returns the error code to use with GooglePlayServicesUtil#getErrorDialog(int, Activity, int).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |