# JsEvalError

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/tui/widgets/_js_eval_display/JsEvalError)

An error raised during a `js_eval` evaluation.

## Signature

```python
JsEvalError(
    self,
    error_type: str,
    body: str,
)
```

## Constructors

```python
__init__(
    self,
    error_type: str,
    body: str,
) -> None
```

| Name | Type |
|------|------|
| `error_type` | `str` |
| `body` | `str` |


## Properties

- `error_type`
- `body`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/caaa7e7c12d214afa5cf0a1afed8eb6232aa6f7b/libs/code/deepagents_code/tui/widgets/_js_eval_display.py#L28)