> ## Documentation Index
> Fetch the complete documentation index at: https://docs.seam.co/llms.txt
> Use this file to discover all available pages before exploring further.

# SeamError

> Base class for all Seam errors.

> Auto-generated from the Seam Android SDK Kotlin sources. Do not edit by hand — see `mintlify-codegen/android-reference/`.

## Overview

```kotlin theme={null}
sealed class SeamError : Exception()
```

Base class for all Seam errors.

These errors are thrown by Seam classes and interfaces. They are all subclasses of
`SeamError`.

***

## Cases

### `InitializationRequired`

The SDK has not been initialized. Call `SeamSDK.initialize` first. Usually
thrown when trying to call a method that requires the SDK to be initialized,
such as `SeamSDK.unlock` or `SeamSDK.activate`.

```kotlin theme={null}
class InitializationRequired : SeamError()
```

### `ActivationRequired`

The app user's phone has not been activated. Call `SeamSDK.activate` first.

```kotlin theme={null}
class ActivationRequired : SeamError()
```

### `IntegrationNotFound`

No integration found for the specified credential. Usually thrown when trying to
unlock a credential that doesn't have an integration (Assa Abloy, Latch, Salto, etc)
associated with it.

```kotlin theme={null}
class IntegrationNotFound : SeamError()
```

### `AlreadyInitialized`

The SDK is already initialized. Thrown when trying to call
`SeamSDK.initialize` multiple times. You can call `SeamSDK.deactivate` first.

```kotlin theme={null}
class AlreadyInitialized : SeamError()
```

### `DeactivationInProgress`

A deactivation is already in progress. Throw when trying to call
`SeamSDK.deactivate` multiple times.

```kotlin theme={null}
class DeactivationInProgress : SeamError()
```

### `InvalidCredentialId`

The credential id is invalid. This error is usually thrown when trying to unlock
with a credential that is invalid, or not recognized by the SDK.

```kotlin theme={null}
class InvalidCredentialId : SeamError()
```

### `CredentialErrors`

There are multiple credential errors. Thrown when trying to unlock with a credential.
Check the `errors` list for more details.

```kotlin theme={null}
class CredentialErrors(val errors: List<SeamCredentialError>) : SeamError()
```

**Parameters**

| Parameter | Description        |
| --------- | ------------------ |
| `errors`  | the list of errors |

### `InternetConnectionRequired`

The device does not have an internet connection. Usually thrown when trying to
call a method that requires an internet connection, such as `SeamSDK.unlock`,
`SeamSDK.initialize`, `SeamSDK.refresh`, `SeamSDK.activate` etc.

```kotlin theme={null}
class InternetConnectionRequired : SeamError()
```

### `InvalidClientSessionToken`

The client session token is invalid. Trhown when trying to call
`SeamSDK.initialize` with an invalid client session token.

```kotlin theme={null}
class InvalidClientSessionToken(
```

**Parameters**

| Parameter | Description       |
| --------- | ----------------- |
| `message` | the error message |

### `InvalidUnlockProximity`

The unlock proximity is invalid. Thrown when trying to unlock with an invalid unlock
proximity.

```kotlin theme={null}
class InvalidUnlockProximity : SeamError()
```

### `Unknown`

An unknown error occurred.

```kotlin theme={null}
class Unknown : SeamError()
```
