# ProtectedExtraError

> **Class** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/update_check/ProtectedExtraError)

Raised when an uninstall targets a required base-dependency extra.

A subclass so callers that only care about "cannot remove" can catch the
base class, while the CLI and TUI can report a refusal separately from a
no-op.

## Signature

```python
ProtectedExtraError()
```

## Extends

- `ExtraNotInstalledError`

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/e4c1ffe9ee63d7854147de490ca27495ef157a7b/libs/code/deepagents_code/update_check.py#L3756)