# libtmux.exc.TmuxObjectDoesNotExist

- **Module:** libtmux.exc
- **Package:** libtmux
- **Language:** Python
- **Kind:** class
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/exc.py#L270
- **Page:** https://libtmux.org/reference/py/libtmux-exc-tmuxobjectdoesnotexist/

tmux has no object with the id that was asked for.

## Example

```python
>>> from libtmux import exc
>>> str(exc.TmuxObjectDoesNotExist())
'Could not find object'
```

## Example

```python
>>> str(
...     exc.TmuxObjectDoesNotExist(
...         obj_key="pane_id",
...         obj_id="%99",
...         list_cmd="list-panes",
...         list_extra_args=("-t", "%99"),
...     )
... )
"Could not find pane_id=%99 for list-panes ('-t', '%99')"
```

## Members

- `__init__` (method)
- `__str__` (method) — Render with optional ``"<subcommand>: …"`` prefix.
