# errors.QueryValidationError

- **Module:** errors
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/errors.ts#L361
- **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. {@link QueryValidationError.reason} separates a bad id
from bad criteria, and the path locates the field.

## Members

- `code` (attribute)
- `reason` (attribute)
- `path` (attribute): Where in the criteria the problem is, as keys and array indices.
- `constructor` (method)
