Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

exception libtmux latest

ObjectDoesNotExist

A lookup expected one object and matched none.

Base types LibTmuxException
Source and package
Qualified name
libtmux.exc.ObjectDoesNotExist
Module
libtmux.exc
Package
libtmux
Source
src/libtmux/exc.py
exception libtmux.exc.ObjectDoesNotExist

Description#

Raised by get() when nothing matches and no default was 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 LibTmuxException hierarchy, so except LibTmuxException catches it:

>>> issubclass(exc.ObjectDoesNotExist, exc.LibTmuxException)
True

Members1#

Inherited members1 member#

Reached through libtmux.exc.LibTmuxException.

Guides#

Pages that discuss ObjectDoesNotExist.

Esc

Type to search.

Reference previewOpen reference