# errors.LibTmuxError.code

- **Module:** errors.LibTmuxError
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** attribute
- **Source:** https://github.com/libtmux/libtmux-ts/blob/3fe1ca654b81b8cbf4a13b777a001a3298c87a6f/packages/libtmux/src/errors.ts#L161
- **Page:** https://libtmux.org/en/ts/latest/reference/errors-libtmuxerror-code/

This class's identifier, declared once per class and written to both {@link code} and `name` on every instance.

It is a literal rather than `new.target.name` because a constructor's
`name` is its identifier, and a bundler that minifies identifiers renames
it: under `--minify`, `new WaitTimeoutError().name` read `"m"`. Anything a
consumer branches on has to survive their build, so every subclass
declares this and a gate holds each one to its own.
