# NovaError

> **Class** in `langchain_amazon_nova`

📖 [View in docs](https://reference.langchain.com/python/langchain-amazon-nova/_exceptions/NovaError)

Base exception for all Nova-related errors.

## Signature

```python
NovaError(
    self,
    message: str,
    status_code: Optional[int] = None,
    response: Optional[Dict[str, Any]] = None,
)
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `message` | `str` | Yes | Error message |
| `status_code` | `Optional[int]` | No | HTTP status code if available (default: `None`) |
| `response` | `Optional[Dict[str, Any]]` | No | Full response data if available (default: `None`) |

## Extends

- `Exception`

## Constructors

```python
__init__(
    self,
    message: str,
    status_code: Optional[int] = None,
    response: Optional[Dict[str, Any]] = None,
)
```

| Name | Type |
|------|------|
| `message` | `str` |
| `status_code` | `Optional[int]` |
| `response` | `Optional[Dict[str, Any]]` |


## Properties

- `status_code`
- `response`

---

[View source on GitHub](https://github.com/amazon-nova-api/langchain-amazon-nova/blob/213daad519b5c69124a9029884d7f593944bd35f/libs/amazon_nova/langchain_amazon_nova/_exceptions.py#L13)