Stay organized with collections
Save and categorize content based on your preferences.
AssetPackException
public
class
AssetPackException
extends ApiException
An exception indicating something went wrong with the Asset Delivery API.
See getErrorCode()
for the specific problem.
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 methods
getErrorCode
public int getErrorCode ()
Returns an error code value from AssetPackErrorCode
.
getStatusCode
public int getStatusCode ()
Returns the error code resulting from the operation. The value is one of the constants in
AssetPackErrorCode
. getStatusCode() is unsupported by AssetPackException, 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,["# AssetPackException\n\nSummary: [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nAssetPackException\n==================\n\n\n`\npublic\n\n\nclass\nAssetPackException\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.assetpacks.AssetPackException |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAn exception indicating something went wrong with the Asset Delivery API.\n\nSee [getErrorCode()](../../../../../../../reference/com/google/android/play/core/assetpacks/AssetPackException.html#getErrorCode()) for the specific problem.\n\nSummary\n-------\n\n| ### Public methods ||\n|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` int` | ` `[getErrorCode](../../../../../../../reference/com/google/android/play/core/assetpacks/AssetPackException.html#getErrorCode())`() ` Returns an error code value from [AssetPackErrorCode](../../../../../../../reference/com/google/android/play/core/assetpacks/model/AssetPackErrorCode.html). |\n| ` int` | ` `[getStatusCode](../../../../../../../reference/com/google/android/play/core/assetpacks/AssetPackException.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 methods\n--------------\n\n### getErrorCode\n\n```\npublic int getErrorCode ()\n```\n\nReturns an error code value from [AssetPackErrorCode](../../../../../../../reference/com/google/android/play/core/assetpacks/model/AssetPackErrorCode.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[AssetPackErrorCode](../../../../../../../reference/com/google/android/play/core/assetpacks/model/AssetPackErrorCode.html). getStatusCode() is unsupported by AssetPackException, please use\ngetErrorCode() instead.\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |"]]