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

# IdentityVerificationError

> Swift Structure

**Structure**

An error from the identity verification flow.

```swift theme={null}
struct IdentityVerificationError
```

When `retriable` is false, the flow cannot continue. The buyer cannot finish it.

## Initializers

### init(retriable:reason:message:)

Creates an error.

```swift theme={null}
init(retriable: Bool, reason: Reason, message: String)
```

## Instance Properties

| Property           | Type      | Description                                                |
| ------------------ | --------- | ---------------------------------------------------------- |
| `errorDescription` | `String?` | Inherited from `LocalizedError.errorDescription`.          |
| `message`          | `String`  | The text that describes the error.                         |
| `reason`           | `Reason`  | The cause of the error.                                    |
| `retriable`        | `Bool`    | A Boolean value that shows whether a new attempt can work. |

## Enumerations

### IdentityVerificationError.Reason

The cause of the error.

```swift theme={null}
enum Reason
```
