Stay organized with collections
Save and categorize content based on your preferences.
InstallException
public
class
InstallException
extends ApiException
An exception indicating something went wrong with an install/update.
See getErrorCode()
for the discrete error types.
For general guidance and examples, see Support in-app updates.
Summary
Inherited methods |
|
|
From class
java.lang.Object
boolean
|
equals(Object arg0)
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public constructors
InstallException
public InstallException (int errorCode)
Public methods
getErrorCode
public int getErrorCode ()
Returns an error code value from InstallErrorCode
.
getStatusCode
public int getStatusCode ()
Returns the error code resulting from the operation. The value is one of the constants in
InstallErrorCode
. getStatusCode() is unsupported by InstallException, please use
getErrorCode() instead.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# InstallException\n\nSummary: [Ctors](#pubctors) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nInstallException\n================\n\n\n`\npublic\n\n\nclass\nInstallException\n`\n\n\n`\n\n\n`\n\n`\n\n\n`\n\n`\n\n\n`\n\n`\n\nextends `[ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|---|---|-------------------------------------------------------|\n| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||||\n| ↳ | [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) ||||\n| | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) |||\n| | | ↳ | [com.google.android.gms.common.api.ApiException](https://developer.google.com/android/reference/com/google/android/gms/common/api/ApiException.html) ||\n| | | | ↳ | com.google.android.play.core.install.InstallException |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn exception indicating something went wrong with an install/update.\n\nSee [getErrorCode()](../../../../../../../reference/com/google/android/play/core/install/InstallException.html#getErrorCode()) for the discrete error types.\n\nFor general guidance and examples, see [Support in-app updates](https://d.android.com/guide/app-bundle/in-app-updates).\n\nSummary\n-------\n\n| ### Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[InstallException](../../../../../../../reference/com/google/android/play/core/install/InstallException.html#InstallException(int))`(int errorCode) ` |\n\n| ### Public methods ||\n|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` int` | ` `[getErrorCode](../../../../../../../reference/com/google/android/play/core/install/InstallException.html#getErrorCode())`() ` Returns an error code value from [InstallErrorCode](../../../../../../../reference/com/google/android/play/core/install/model/InstallErrorCode.html). |\n| ` int` | ` `[getStatusCode](../../../../../../../reference/com/google/android/play/core/install/InstallException.html#getStatusCode())`() ` Returns the error code resulting from the operation. |\n\n| ### Inherited methods |\n|-----------------------|---|\n| 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() ` | ||\n| 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() ` | ||\n| 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)`\u003c?\u003e` | ` 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() ` | ||\n\nPublic constructors\n-------------------\n\n### InstallException\n\n```\npublic InstallException (int errorCode)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------|--------------|\n| `errorCode` | `int` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getErrorCode\n\n```\npublic int getErrorCode ()\n```\n\nReturns an error code value from [InstallErrorCode](../../../../../../../reference/com/google/android/play/core/install/model/InstallErrorCode.html).\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### getStatusCode\n\n```\npublic int getStatusCode ()\n```\n\nReturns the error code resulting from the operation. The value is one of the constants in\n[InstallErrorCode](../../../../../../../reference/com/google/android/play/core/install/model/InstallErrorCode.html). getStatusCode() is unsupported by InstallException, please use\ngetErrorCode() instead.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |"]]