# ResourceInUseError

> **Class** in `langsmith`

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

Raised when deleting a resource that is still in use.

## Signature

```python
ResourceInUseError(
    self,
    message: str,
    resource_type: Optional[str] = None,
)
```

## Extends

- `SandboxClientError`

## Constructors

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

| Name | Type |
|------|------|
| `message` | `str` |
| `resource_type` | `Optional[str]` |


## Properties

- `resource_type`

---

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