LoadSdkException


public final class LoadSdkException
extends Exception implements Parcelable

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ android.app.sdksandbox.LoadSdkException


This class was deprecated in API level 37.
The SDK sandbox is no longer supported.

Exception thrown by SdkSandboxManager.loadSdk

Summary

Inherited constants

Fields

public static final Creator<LoadSdkException> CREATOR

Public constructors

LoadSdkException(Throwable cause, Bundle extraInfo)

Initializes a LoadSdkException with a Throwable and a Bundle.

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

Added in API level 34
Also in Ad Services Extensions 4
Deprecated in API level 37
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

Added in API level 34
Deprecated in API level 37
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(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

getExtraInformation

Added in API level 34
Also in Ad Services Extensions 4
Deprecated in API level 37
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

Added in API level 34
Also in Ad Services Extensions 4
Deprecated in API level 37
public int getLoadSdkErrorCode ()

Returns the result code this exception was constructed with.

Returns
int The loadSdk result code.
Value is one of the following:

writeToParcel

Added in API level 34
Deprecated in API level 37
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 the following: