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

# JwtGenerationException

> Exception thrown when JWT generation fails.

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

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

Exception thrown when JWT generation fails.

## Constructor Details

### `JwtGenerationException`

**Overload 1**

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

**Parameters:**

`message` - `String`

**Overload 2**

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

**Parameters:**

`message` - `String`

`cause` - `Throwable`
