# errors.ObjectNotFoundError

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

A lookup that required one object found none.

The criteria are on [`ObjectNotFoundError.query`](/en/ts/latest/reference/errors-objectnotfounderror-query/) as they were written,
and rendered into the message. Raised by the strict lookups; the lenient
ones return [`undefined`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/undefined) instead.

## Members

### Other members

- [`code`](/en/ts/latest/reference/errors-objectnotfounderror-code/) (attribute)
- [`constructor`](/en/ts/latest/reference/errors-objectnotfounderror-constructor/) (method)
- [`query`](/en/ts/latest/reference/errors-objectnotfounderror-query/) (attribute)
