# errors.QueryValidationError

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

Criteria that could not be evaluated, rejected before any command ran.

This is a caller mistake rather than a tmux one, so nothing was sent and
nothing needs undoing. [`QueryValidationError.reason`](/en/ts/latest/reference/errors-queryvalidationerror-reason/) separates a bad id
from bad criteria, and the path locates the field.

## Members

### Other members

- [`code`](/en/ts/latest/reference/errors-queryvalidationerror-code/) (attribute)
- [`constructor`](/en/ts/latest/reference/errors-queryvalidationerror-constructor/) (method)
- [`path`](/en/ts/latest/reference/errors-queryvalidationerror-path/) (attribute): Where in the criteria the problem is, as keys and array indices.
- [`reason`](/en/ts/latest/reference/errors-queryvalidationerror-reason/) (attribute)

## Guides

Pages that discuss `QueryValidationError`.

- [Filtering and queries](/en/ts/latest/concepts/queries/)
