# ValidationError

> **Class** in `langsmith`

📖 [View in docs](https://reference.langchain.com/python/langsmith/sandbox/_exceptions/ValidationError)

Raised when request validation fails.

This includes:
- Resource values exceeding server-defined limits (CPU, memory, storage)
- Invalid resource units
- Invalid name formats
- Pool validation failures (e.g., template has volumes)

## Signature

```python
ValidationError(
    self,
    message: str,
    field: Optional[str] = None,
    details: Optional[list[dict]] = None,
    error_type: Optional[str] = None,
)
```

## Extends

- `SandboxClientError`

## Constructors

```python
__init__(
    self,
    message: str,
    field: Optional[str] = None,
    details: Optional[list[dict]] = None,
    error_type: Optional[str] = None,
)
```

| Name | Type |
|------|------|
| `message` | `str` |
| `field` | `Optional[str]` |
| `details` | `Optional[list[dict]]` |
| `error_type` | `Optional[str]` |


## Properties

- `field`
- `details`
- `error_type`

---

[View source on GitHub](https://github.com/langchain-ai/langsmith-sdk/blob/ce9e9e8973442b33e98ec3ce1b9c2dd3f58a43a7/python/langsmith/sandbox/_exceptions.py#L154)