# GooglePlayServicesRepairableException


```
class GooglePlayServicesRepairableException : UserRecoverableException
```

<br />

|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) |||
|   |   | ↳ | [com.google.android.gms.common.UserRecoverableException](https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/UserRecoverableException) ||
|   |   |   | ↳ | [com.google.android.gms.common.GooglePlayServicesRepairableException](https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesRepairableException) |

*** ** * ** ***

`GooglePlayServicesRepairableException`s are special instances of `https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/UserRecoverableException`s which are thrown when Google Play services is not installed, up-to-date, or enabled. In these cases, client code can use `https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesRepairableException#getConnectionStatusCode()` in conjunction with `https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/GoogleApiAvailability#getErrorDialog(android.app.Activity,int,int)` to provide users with a localized `https://developer.android.com/reference/android/app/Dialog.html` that will allow users to install, update, or otherwise enable Google Play services.

## Summary

| ### Public constructors |
|---|
| `https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesRepairableException#GooglePlayServicesRepairableException(int,java.lang.String,android.content.Intent)( connectionStatusCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html, msg: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!, intent: https://developer.android.com/reference/android/content/Intent.html! )` Creates a `https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesRepairableException`. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | `https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesRepairableException#connectionStatusCode()` |

### Inherited functions

From [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) `synchronized https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/add-suppressed.html(p: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!)` `synchronized https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/fill-in-stack-trace.html()` `synchronized https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-cause.html()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-localized-message.html()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-message.html()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html!>!` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-stack-trace.html()` `synchronized https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!>!` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/get-suppressed.html()` `synchronized https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/init-cause.html(p: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/print-stack-trace.html()` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/set-stack-trace.html(p: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html!>!)` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` `https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/to-string.html()`

### Inherited properties

From [com.google.android.gms.common.UserRecoverableException](https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/UserRecoverableException) `https://developer.android.com/reference/android/content/Intent.html!` `https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/UserRecoverableException#intent()`

## Public constructors

### GooglePlayServicesRepairableException

```
GooglePlayServicesRepairableException(
    connectionStatusCode: Int,
    msg: String!,
    intent: Intent!
)
```

Creates a `https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/GooglePlayServicesRepairableException`.

| Parameters |
|---|---|
| `connectionStatusCode: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html` | a code for the `https://developers.google.com/android/reference/kotlin/com/google/android/gms/common/ConnectionResult``statusCode` of the exception |
| `msg: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html!` | a string message for the exception |
| `intent: https://developer.android.com/reference/android/content/Intent.html!` | an intent that may be started to resolve the connection issue with Google Play services |

## Public properties

### connectionStatusCode

```
val connectionStatusCode: Int
```