# errors.ObjectNotFoundError

- **Module:** errors
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/errors.ts#L252
- **Page:** https://libtmux.org/en/ts/latest/reference/errors-objectnotfounderror/

A lookup that required one object found none.

The criteria are on {@link ObjectNotFoundError.query} as they were written,
and rendered into the message. Raised by the strict lookups; the lenient
ones return `undefined` instead.

## Members

- `code` (attribute)
- `query` (attribute)
- `constructor` (method)
