# 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

## 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/51bff1a3a85a9f692346697c4dda5ec9fa12b947/python/langsmith/sandbox/_exceptions.py#L166)