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

# KeyParseException

> Exception thrown when private key parsing fails.

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

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

Exception thrown when private key parsing fails.

## Constructor Details

### `KeyParseException`

**Overload 1**

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

**Parameters:**

`message` - `String`

**Overload 2**

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

**Parameters:**

`message` - `String`

`cause` - `Throwable`
