Core LibrarystableAPI Reference

Choose documentation 3

stable

Current version

stable
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

exception libtmux stable

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

Discussed in Filtering and queries

Members1#

Inherited members1 member#

Reached through libtmux.exc.LibTmuxException.

Esc

Type to search.

Reference preview Open reference