# SplitInstallException

Summary:[Methods](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallException#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallException#inhmethods)  

# SplitInstallException

`
public


class
SplitInstallException
`  
`


``


``


``

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.splitinstall.SplitInstallException |

<br />

*** ** * ** ***

An exception indicating something went wrong with the request to install a split APK.

See[getErrorCode()](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallException.html#getErrorCode())for the specific problem. For more information and examples, see[Handle request errors](https://d.android.com/guide/playcore/dynamic-delivery#handle_request_errors).

## Summary

|                                                                                                                                                            ### Public methods                                                                                                                                                            ||
|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int` | ` `[getErrorCode](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallException.html#getErrorCode())`() ` Returns an error code value from[SplitInstallErrorCode](https://developer.android.com/reference/com/google/android/play/core/splitinstall/model/SplitInstallErrorCode.html). |
| ` int` | ` `[getStatusCode](https://developer.android.com/reference/com/google/android/play/core/splitinstall/SplitInstallException.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 methods

### getErrorCode

```
public int getErrorCode ()
```

Returns an error code value from[SplitInstallErrorCode](https://developer.android.com/reference/com/google/android/play/core/splitinstall/model/SplitInstallErrorCode.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[SplitInstallErrorCode](https://developer.android.com/reference/com/google/android/play/core/splitinstall/model/SplitInstallErrorCode.html). getStatusCode() is unsupported by SplitInstallException, please use getErrorCode() instead.

<br />

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