# raise_creation_error

> **Function** in `langsmith`

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

Raise ResourceCreationError with the error_type from the API response.

The error_type indicates the specific failure reason:
- ImagePull: Image pull failed
- CrashLoop: Container crashed during startup
- SandboxConfig: Configuration error
- Unschedulable: Cannot be scheduled

## Signature

```python
raise_creation_error(
    data: dict[str, Any],
    error: httpx.HTTPStatusError,
    resource_type: str = 'sandbox',
) -> None
```

---

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