# InstallException

Summary:[Ctors](https://developer.android.com/reference/com/google/android/play/core/install/InstallException#pubctors)\|[Methods](https://developer.android.com/reference/com/google/android/play/core/install/InstallException#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/com/google/android/play/core/install/InstallException#inhmethods)  

# InstallException

`
public


class
InstallException
`  
`


``


``


``

extends `[ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html)`


``


`

|---|---|---|---|-------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||||
| ↳ | [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) |||
|   |   | ↳ | [com.google.android.gms.common.api.ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html) ||
|   |   |   | ↳ | com.google.android.play.core.install.InstallException |

<br />

*** ** * ** ***

An exception indicating something went wrong with an install/update.

See[getErrorCode()](https://developer.android.com/reference/com/google/android/play/core/install/InstallException.html#getErrorCode())for the discrete error types.

For general guidance and examples, see[Support in-app updates](https://d.android.com/guide/app-bundle/in-app-updates).

## Summary

|                                                                       ### Public constructors                                                                        ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[InstallException](https://developer.android.com/reference/com/google/android/play/core/install/InstallException.html#InstallException(int))`(int errorCode) ` |

|                                                                                                                                               ### Public methods                                                                                                                                                ||
|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int` | ` `[getErrorCode](https://developer.android.com/reference/com/google/android/play/core/install/InstallException.html#getErrorCode())`() ` Returns an error code value from[InstallErrorCode](https://developer.android.com/reference/com/google/android/play/core/install/model/InstallErrorCode.html). |
| ` int` | ` `[getStatusCode](https://developer.android.com/reference/com/google/android/play/core/install/InstallException.html#getStatusCode())`() ` Returns the error code resulting from the operation.                                                                                                        |

| ### Inherited methods |
|-----------------------|---|
| From class` `[com.google.android.gms.common.api.ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html)` ` |-----------------------------------------------------------------------------------------------------------|------------------------| | ` `[Status](https://developer.google.com/android/reference/com/google/android/gms/common/api/Status.html) | ` getStatus() `        | | ` int`                                                                                                    | ` getStatusCode() `    | | ` `[String](https://developer.android.com/reference/java/lang/String.html)                                | ` getStatusMessage() ` | ||
| From class` `[java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html)` ` |----------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------| | ` final void`                                                                                      | ` addSuppressed(`[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)` arg0) `                   | | ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)                   | ` fillInStackTrace() `                                                                                                    | | ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)                   | ` getCause() `                                                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)                         | ` getLocalizedMessage() `                                                                                                 | | ` `[String](https://developer.android.com/reference/java/lang/String.html)                         | ` getMessage() `                                                                                                          | | ` `[StackTraceElement[]](https://developer.android.com/reference/java/lang/StackTraceElement.html) | ` getStackTrace() `                                                                                                       | | ` final `[Throwable[]](https://developer.android.com/reference/java/lang/Throwable.html)           | ` getSuppressed() `                                                                                                       | | ` `[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)                   | ` initCause(`[Throwable](https://developer.android.com/reference/java/lang/Throwable.html)` arg0) `                       | | ` void`                                                                                            | ` printStackTrace() `                                                                                                     | | ` void`                                                                                            | ` printStackTrace(`[PrintWriter](https://developer.android.com/reference/java/io/PrintWriter.html)` arg0) `               | | ` void`                                                                                            | ` printStackTrace(`[PrintStream](https://developer.android.com/reference/java/io/PrintStream.html)` arg0) `               | | ` void`                                                                                            | ` setStackTrace(`[StackTraceElement[]](https://developer.android.com/reference/java/lang/StackTraceElement.html)` arg0) ` | | ` `[String](https://developer.android.com/reference/java/lang/String.html)                         | ` toString() `                                                                                                            | ||
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object.html)` ` |-------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------| | ` boolean`                                                                          | ` equals(`[Object](https://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` final `[Class](https://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                             | | ` int`                                                                              | ` hashCode() `                                                                             | | ` final void`                                                                       | ` notify() `                                                                               | | ` final void`                                                                       | ` notifyAll() `                                                                            | | ` `[String](https://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                             | | ` final void`                                                                       | ` wait(long arg0, int arg1) `                                                              | | ` final void`                                                                       | ` wait(long arg0) `                                                                        | | ` final void`                                                                       | ` wait() `                                                                                 | ||

## Public constructors

### InstallException

```
public InstallException (int errorCode)
```

<br />

<br />

|        Parameters         ||
|-------------|--------------|
| `errorCode` | `int` <br /> |

## Public methods

### getErrorCode

```
public int getErrorCode ()
```

Returns an error code value from[InstallErrorCode](https://developer.android.com/reference/com/google/android/play/core/install/model/InstallErrorCode.html).

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getStatusCode

```
public int getStatusCode ()
```

Returns the error code resulting from the operation. The value is one of the constants in[InstallErrorCode](https://developer.android.com/reference/com/google/android/play/core/install/model/InstallErrorCode.html). getStatusCode() is unsupported by InstallException, please use getErrorCode() instead.

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |