# libtmux.exc.TmuxObjectDoesNotExist

- **Module:** libtmux.exc
- **Package:** libtmux
- **Language:** Python
- **Kind:** class
- **Source:** https://github.com/tmux-python/libtmux/blob/38e368c11117fb4aeb2f082d552cd4f210eae06a/src/libtmux/exc.py#L269
- **Bases:** [`ObjectDoesNotExist`](/en/py/stable/reference/libtmux-exc-objectdoesnotexist/)
- **Page:** https://libtmux.org/en/py/stable/reference/libtmux-exc-tmuxobjectdoesnotexist/

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

## Examples

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

```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

### Other members

- [`__init__`](/en/py/stable/reference/libtmux-exc-tmuxobjectdoesnotexist-__init__/) (method)

## Inherited members

- [`__str__`](/en/py/stable/reference/libtmux-exc-tmuxobjectdoesnotexist-__str__/) (method), inherited from `libtmux.exc.LibTmuxException`: Render with optional ``"<subcommand>: …"`` prefix.
