# LoadSdkCompatException

Artifact: [androidx.privacysandbox.sdkruntime:sdkruntime-core](https://developer.android.com/jetpack/androidx/releases/privacysandbox-sdkruntime) [View Source](https://cs.android.com/search?q=file:androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException.kt+class:androidx.privacysandbox.sdkruntime.core.LoadSdkCompatException) Added in [1.0.0-alpha19](https://developer.android.com/jetpack/androidx/releases/privacysandbox-sdkruntime#1.0.0-alpha19) Deprecated in [1.0.0-alpha19](https://developer.android.com/jetpack/androidx/releases/privacysandbox-sdkruntime#1.0.0-alpha19)

*** ** * ** ***


```
class LoadSdkCompatException : Exception
```

<br />

|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) ||
|   |   | ↳ | [androidx.privacysandbox.sdkruntime.core.LoadSdkCompatException](https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> This library is no longer supported.

Compat alternative for `https://developer.android.com/reference/android/app/sdksandbox/LoadSdkException.html`. Thrown from `https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/SandboxedSdkProviderCompat#onLoadSdk(android.os.Bundle)`.

| See also |
|---|---|
| `https://developer.android.com/reference/android/app/sdksandbox/LoadSdkException.html` |   |

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException#LOAD_SDK_ALREADY_LOADED() = 101` **This property is deprecated.** This library is no longer supported. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException#LOAD_SDK_INTERNAL_ERROR() = 500` **This property is deprecated.** This library is no longer supported. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException#LOAD_SDK_NOT_FOUND() = 100` **This property is deprecated.** This library is no longer supported. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException#LOAD_SDK_SDK_DEFINED_ERROR() = 102` **This property is deprecated.** This library is no longer supported. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException#LOAD_SDK_SDK_SANDBOX_DISABLED() = 103` **This property is deprecated.** This library is no longer supported. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException#SDK_SANDBOX_PROCESS_NOT_AVAILABLE() = 503` **This property is deprecated.** This library is no longer supported. |

| ### Public constructors |
|---|
| `[LoadSdkCompatException](https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException#LoadSdkCompatException(kotlin.Throwable,android.os.Bundle))(cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html, extraInfo: https://developer.android.com/reference/android/os/Bundle.html)` **This function is deprecated.** This library is no longer supported. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/android/os/Bundle.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException#extraInformation()` **This property is deprecated.** This library is no longer supported. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException#loadSdkErrorCode()` **This property is deprecated.** This library is no longer supported. |

### Inherited functions

From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[addSuppressed](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/add-suppressed.html)(exception: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)`

**This function is deprecated.** This library is no longer supported.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html` `[fillInStackTrace](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/fill-in-stack-trace.html)()`

**This function is deprecated.** This library is no longer supported.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html` `[initCause](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/init-cause.html)(cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html)`

**This function is deprecated.** This library is no longer supported.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[printStackTrace](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html)()`

**This function is deprecated.** This library is no longer supported.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[printStackTrace](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html)(s: https://developer.android.com/reference/java/io/PrintStream.html)`

**This function is deprecated.** This library is no longer supported.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[printStackTrace](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html)(s: https://developer.android.com/reference/java/io/PrintWriter.html)`

**This function is deprecated.** This library is no longer supported.

### Inherited properties

From [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/cause.html`

**This property is deprecated.** This library is no longer supported.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/localized-message.html`

**This property is deprecated.** This library is no longer supported.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/message.html`

**This property is deprecated.** This library is no longer supported.
`open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html>` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/stack-trace.html`

**This property is deprecated.** This library is no longer supported.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html>` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/suppressed.html`

**This property is deprecated.** This library is no longer supported.

## Constants

### LOAD_SDK_ALREADY_LOADED

```
const val LOAD_SDK_ALREADY_LOADED = 101: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> This library is no longer supported.

SDK is already loaded.

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

| See also |
|---|---|
| `https://developer.android.com/reference/android/app/sdksandbox/SdkSandboxManager.html#LOAD_SDK_ALREADY_LOADED` |   |

### LOAD_SDK_INTERNAL_ERROR

```
const val LOAD_SDK_INTERNAL_ERROR = 500: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> This library is no longer supported.

Internal error while loading SDK.

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

| See also |
|---|---|
| `https://developer.android.com/reference/android/app/sdksandbox/SdkSandboxManager.html#LOAD_SDK_INTERNAL_ERROR` |   |

### LOAD_SDK_NOT_FOUND

```
const val LOAD_SDK_NOT_FOUND = 100: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> This library is no longer supported.

SDK not found.

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

| See also |
|---|---|
| `https://developer.android.com/reference/android/app/sdksandbox/SdkSandboxManager.html#LOAD_SDK_NOT_FOUND` |   |

### LOAD_SDK_SDK_DEFINED_ERROR

```
const val LOAD_SDK_SDK_DEFINED_ERROR = 102: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> This library is no longer supported.

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 `https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException`.

| See also |
|---|---|
| `https://developer.android.com/reference/android/app/sdksandbox/SdkSandboxManager.html#LOAD_SDK_SDK_DEFINED_ERROR` |   |

### LOAD_SDK_SDK_SANDBOX_DISABLED

```
const val LOAD_SDK_SDK_SANDBOX_DISABLED = 103: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> This library is no longer supported.

SDK sandbox is disabled.

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

| See also |
|---|---|
| `https://developer.android.com/reference/android/app/sdksandbox/SdkSandboxManager.html#LOAD_SDK_SDK_SANDBOX_DISABLED` |   |

### SDK_SANDBOX_PROCESS_NOT_AVAILABLE

```
const val SDK_SANDBOX_PROCESS_NOT_AVAILABLE = 503: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> This library is no longer supported.

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.

| See also |
|---|---|
| `https://developer.android.com/reference/android/app/sdksandbox/SdkSandboxManager.html#SDK_SANDBOX_PROCESS_NOT_AVAILABLE` |   |

## Public constructors

### LoadSdkCompatException

Added in [1.0.0-alpha19](https://developer.android.com/jetpack/androidx/releases/privacysandbox-sdkruntime#1.0.0-alpha19) Deprecated in [1.0.0-alpha19](https://developer.android.com/jetpack/androidx/releases/privacysandbox-sdkruntime#1.0.0-alpha19)

```
[LoadSdkCompatException](https://developer.android.com/reference/kotlin/androidx/privacysandbox/sdkruntime/core/LoadSdkCompatException#LoadSdkCompatException(kotlin.Throwable,android.os.Bundle))(cause: Throwable, extraInfo: Bundle)
```

> [!CAUTION]
> **This function is deprecated.**   
> This library is no longer supported.

Initializes a LoadSdkCompatException with a Throwable and a Bundle.

| Parameters |
|---|---|
| `cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html` | The cause of the exception. |
| `extraInfo: https://developer.android.com/reference/android/os/Bundle.html` | Extra error information. This is empty if there is no such information. |

## Public properties

### extraInformation

Added in [1.0.0-alpha19](https://developer.android.com/jetpack/androidx/releases/privacysandbox-sdkruntime#1.0.0-alpha19) Deprecated in [1.0.0-alpha19](https://developer.android.com/jetpack/androidx/releases/privacysandbox-sdkruntime#1.0.0-alpha19)

```
val extraInformation: Bundle
```

> [!CAUTION]
> **This property is deprecated.**   
> This library is no longer supported.

Extra error information this exception was constructed with.

| See also |
|---|---|
| `https://developer.android.com/reference/android/app/sdksandbox/LoadSdkException.html#getExtraInformation()` |   |

### loadSdkErrorCode

Added in [1.0.0-alpha19](https://developer.android.com/jetpack/androidx/releases/privacysandbox-sdkruntime#1.0.0-alpha19) Deprecated in [1.0.0-alpha19](https://developer.android.com/jetpack/androidx/releases/privacysandbox-sdkruntime#1.0.0-alpha19)

```
val loadSdkErrorCode: Int
```

> [!CAUTION]
> **This property is deprecated.**   
> This library is no longer supported.

Result code this exception was constructed with.

Value is one of the following:

- `503`
- `100`
- `101`
- `102`
- `103`
- `500`

<br />

| See also |
|---|---|
| `https://developer.android.com/reference/android/app/sdksandbox/LoadSdkException.html#getLoadSdkErrorCode()` |   |