# errors.LibTmuxErrorCode

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

Every value {@link LibTmuxError.code} can hold.

A union rather than `string` so a comparison against a name this package
does not have is a type error rather than a branch that never runs.

Each class declares this type rather than its own literal because the
hierarchy is three deep in places — `NoMatchError` extends
`ObjectNotFoundError` — and a literal on the parent makes the child's
declaration an illegal override. `instanceof` is the narrowing tool; this
is the one that survives a bundler and a serialization round trip.
