# libtmux.exc.TmuxObjectDoesNotExist

- **Module:** libtmux.exc
- **Package:** libtmux
- **Language:** Python
- **Kind:** class
- **Source:** https://github.com/tmux-python/libtmux/blob/9fdd083a8181a827889337b63cd4e6daea661a8c/src/libtmux/exc.py#L270
- **Page:** https://libtmux.org/en/py/latest/reference/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.
