> ## 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.

# WalletError

> Swift Enumeration

**Enumeration**

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

## Enumeration Cases

### WalletError.invalidChain(chain:)

```swift theme={null}
case invalidChain(chain: Chain)
```

### WalletError.invalidToken(token:)

```swift theme={null}
case invalidToken(token: CryptoCurrency)
```

### WalletError.serviceError(\_:)

```swift theme={null}
case serviceError(CrossmintServiceError)
```

### WalletError.signerNotRegistered(\_:)

```swift theme={null}
case signerNotRegistered(String)
```

### WalletError.transactionNotFound

```swift theme={null}
case transactionNotFound
```

### WalletError.walletCreationCancelled

```swift theme={null}
case walletCreationCancelled
```

### WalletError.walletCreationFailed(\_:)

```swift theme={null}
case walletCreationFailed(String)
```

### WalletError.walletGeneric(\_:)

```swift theme={null}
case walletGeneric(String)
```

### WalletError.walletInvalidCredentials

```swift theme={null}
case walletInvalidCredentials
```

### WalletError.walletInvalidSignerProvided

```swift theme={null}
case walletInvalidSignerProvided
```

### WalletError.walletInvalidType(\_:)

```swift theme={null}
case walletInvalidType(String)
```

### WalletError.walletLocatorError(\_:)

```swift theme={null}
case walletLocatorError(String)
```

### WalletError.walletNotFound

```swift theme={null}
case walletNotFound
```

## Instance Properties

### errorMessage

Inherited from `ServiceError.errorMessage`.

```swift theme={null}
var errorMessage: String { get }
```

## Type Methods

### fromNetworkError(\_:)

Inherited from `ServiceError.fromNetworkError(_:)`.

```swift theme={null}
static func fromNetworkError(_ error: NetworkError) -> WalletError
```

### fromServiceError(\_:)

Inherited from `ServiceError.fromServiceError(_:)`.

```swift theme={null}
static func fromServiceError(_ error: CrossmintServiceError) -> WalletError
```
