LoadSdkException
public
final
class
LoadSdkException
extends Exception
implements
Parcelable
| java.lang.Object | |||
| ↳ | java.lang.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | android.app.sdksandbox.LoadSdkException | ||
Exception thrown by SdkSandboxManager.loadSdk
Summary
Inherited constants |
|---|
Fields | |
|---|---|
public
static
final
Creator<LoadSdkException> |
CREATOR
|
Public constructors | |
|---|---|
LoadSdkException(Throwable cause, Bundle extraInfo)
Initializes a |
|
Public methods | |
|---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
Bundle
|
getExtraInformation()
Returns the extra error information this exception was constructed with. |
int
|
getLoadSdkErrorCode()
Returns the result code this exception was constructed with. |
void
|
writeToParcel(Parcel destination, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
|---|---|
Fields
CREATOR
public static final Creator<LoadSdkException> CREATOR
Public constructors
LoadSdkException
public LoadSdkException (Throwable cause, Bundle extraInfo)
Initializes a LoadSdkException with a Throwable and a Bundle.
| Parameters | |
|---|---|
cause |
Throwable: The cause of the exception, which is saved for later retrieval by the Throwable.getCause() method.
This value cannot be null. |
extraInfo |
Bundle: Extra error information. This is empty if there is no such information.
This value cannot be null. |
Public methods
describeContents
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of writeToParcel(android.os.Parcel, int),
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR bit.
| Returns | |
|---|---|
int |
a bitmask indicating the set of special object types marshaled
by this Parcelable object instance.
Value is either 0 or CONTENTS_FILE_DESCRIPTOR |
getExtraInformation
public Bundle getExtraInformation ()
Returns the extra error information this exception was constructed with.
| Returns | |
|---|---|
Bundle |
The extra error information Bundle.
This value cannot be null. |
getLoadSdkErrorCode
public int getLoadSdkErrorCode ()
Returns the result code this exception was constructed with.
writeToParcel
public void writeToParcel (Parcel destination, int flags)
Flatten this object in to a Parcel.
| Parameters | |
|---|---|
destination |
Parcel: This value cannot be null. |
flags |
int: Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |