# SandboxOperationError

> **Class** in `langsmith`

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

Raised when a sandbox operation fails (run, read, write).

## Signature

```python
SandboxOperationError(
    self,
    message: str,
    operation: Optional[str] = None,
    error_type: Optional[str] = None,
)
```

## Extends

- `SandboxClientError`

## Constructors

```python
__init__(
    self,
    message: str,
    operation: Optional[str] = None,
    error_type: Optional[str] = None,
)
```

| Name | Type |
|------|------|
| `message` | `str` |
| `operation` | `Optional[str]` |
| `error_type` | `Optional[str]` |


## Properties

- `operation`
- `error_type`

---

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