public final class LoadSdkCompatException extends Exception


Compat alternative for LoadSdkException. Thrown from SandboxedSdkProviderCompat.onLoadSdk.

See also
LoadSdkException

Summary

Constants

static final int

SDK is already loaded.

static final int

Internal error while loading SDK.

static final int

SDK not found.

static final int

SDK error after being loaded.

static final int

SDK sandbox is disabled.

static final int

Sdk sandbox process is not available.

Public constructors

Initializes a LoadSdkCompatException with a Throwable and a Bundle.

Public methods

final @NonNull Bundle

Extra error information this exception was constructed with.

final int

Result code this exception was constructed with.

Constants

LOAD_SDK_ALREADY_LOADED

public static final int LOAD_SDK_ALREADY_LOADED = 101

SDK is already loaded.

This indicates that client application tried to reload the same SDK after being successfully loaded.

LOAD_SDK_INTERNAL_ERROR

public static final int LOAD_SDK_INTERNAL_ERROR = 500

Internal error while loading SDK.

This indicates a generic internal error happened while applying the call from client application.

LOAD_SDK_NOT_FOUND

public static final int LOAD_SDK_NOT_FOUND = 100

SDK not found.

This indicates that client application tried to load a non-existing SDK.

LOAD_SDK_SDK_DEFINED_ERROR

public static final int LOAD_SDK_SDK_DEFINED_ERROR = 102

SDK error after being loaded.

This indicates that the SDK encountered an error during post-load initialization. The details of this can be obtained from the Bundle returned in LoadSdkCompatException.

LOAD_SDK_SDK_SANDBOX_DISABLED

public static final int LOAD_SDK_SDK_SANDBOX_DISABLED = 103

SDK sandbox is disabled.

This indicates that the SDK sandbox is disabled. Any subsequent attempts to load SDKs in this boot will also fail.

SDK_SANDBOX_PROCESS_NOT_AVAILABLE

public static final int SDK_SANDBOX_PROCESS_NOT_AVAILABLE = 503

Sdk sandbox process is not available.

This indicates that the sdk sandbox process is not available, either because it has died, disconnected or was not created in the first place.

Public constructors

LoadSdkCompatException

Added in 1.0.0-alpha14
public LoadSdkCompatException(@NonNull Throwable cause, @NonNull Bundle extraInfo)

Initializes a LoadSdkCompatException with a Throwable and a Bundle.

Parameters
@NonNull Throwable cause

The cause of the exception.

@NonNull Bundle extraInfo

Extra error information. This is empty if there is no such information.

Public methods

getExtraInformation

Added in 1.0.0-alpha14
public final @NonNull Bundle getExtraInformation()

Extra error information this exception was constructed with.

getLoadSdkErrorCode

Added in 1.0.0-alpha14
public final int getLoadSdkErrorCode()

Result code this exception was constructed with.