---
schema_version: "1"
id: 67431114f1e190fbc82fc0052d29ee47e7f7fdbb44a2852019b73c6e25681339
title: AgentforceSDKError
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/genai/agentforce-mobile-sdk/references/android/agentforce-sdk-error-android.md
canonical_url: https://developer.salesforce.com/docs/ai/agentforce-mobile-sdk/references/agentforce-mobile-sdk/agentforce-sdk-error-android.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 373b461309b8078e243a8aef174b627c20628f211f2714adc6833b22615389e6
products:
  - Agentforce Mobile SDK
  - Agentforce and Einstein Generative AI
---
# AgentforceSDKError

```kotlin
sealed class AgentforceSDKError : Exception
```

## Properties

| Property | Type       | Mutability | Description       |
| -------- | ---------- | ---------- | ----------------- |
| cause    | Throwable? | val        | Exception cause   |
| message  | String?    | val        | Exception message |

## Functions

| Function            | Signature                                                | Description |
| ------------------- | -------------------------------------------------------- | ----------- |
| addSuppressed       | `fun addSuppressed(Throwable): Unit`                     |             |
| fillInStackTrace    | `open fun fillInStackTrace(): Throwable`                 |             |
| getLocalizedMessage | `open fun getLocalizedMessage(): String`                 |             |
| getStackTrace       | `open fun getStackTrace(): Array<StackTraceElement>`     |             |
| getSuppressed       | `fun getSuppressed(): Array<Throwable>`                  |             |
| initCause           | `open fun initCause(Throwable): Throwable`               |             |
| printStackTrace     | `open fun printStackTrace(): Unit`                       |             |
| printStackTrace     | `open fun printStackTrace(PrintStream): Unit`            |             |
| printStackTrace     | `open fun printStackTrace(PrintWriter): Unit`            |             |
| setStackTrace       | `open fun setStackTrace(Array<StackTraceElement>): Unit` |             |

## Nested Classes

- `AgentforceSDKError.NoAgentConfigured`
- `AgentforceSDKError.UnableToStartASession`

## Inherited Functions

- clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
