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

# WalletSecretException

> Exception thrown when wallet secret is missing or invalid.

Package: [`com.coinbase.cdp.auth.exceptions`](/sdks/cdp-sdks-v2/java/com/coinbase/cdp/auth/exceptions/index)

```java theme={null}
public class WalletSecretException extends RuntimeException
```

Exception thrown when wallet secret is missing or invalid.

## Constructor Details

### `WalletSecretException`

**Overload 1**

```java theme={null}
public WalletSecretException(String message)
```

**Parameters:**

`message` - `String`

**Overload 2**

```java theme={null}
public WalletSecretException(String message, Throwable cause)
```

**Parameters:**

`message` - `String`

`cause` - `Throwable`
