On this page
libtmux.exc.ObjectDoesNotExist
- Module
- libtmux.exc
- Package
- libtmux
- Source
- src/libtmux/exc.py
- Bases:
A lookup expected one object and matched none.
Raised by
getwhen nothing matches and nodefaultwas passed.Examples
>>> from libtmux import exc >>> str(exc.ObjectDoesNotExist()) 'No objects found'A lookup that named what it wanted says so:
>>> str(exc.ObjectDoesNotExist(query={"pane_id": "%99"})) "No objects found: pane_id='%99'"It is part of the
LibTmuxExceptionhierarchy, soexcept LibTmuxExceptioncatches it:>>> issubclass(exc.ObjectDoesNotExist, exc.LibTmuxException) TrueDiscussed in Filtering and queries
1 declared, 1 inherited
Members
- __init__ method
Inherited members
Reached through libtmux.exc.LibTmuxException.
- __str__ libtmux.exc.LibTmuxException Render with optional
"<subcommand>: …"prefix.