LibTmuxError.code
This class's identifier, declared once per class and written to both code and name on every instance.
Source and package
- Qualified name
-
LibTmux Error. code - Module
- errors
- Declared in
LibTmuxError- Package
- libtmux
- Source
- packages/libtmux/src/errors.ts
-
Description#
It is a literal rather than
new.target.namebecause a constructor'snameis its identifier, and a bundler that minifies identifiers renames it: under--minify,new WaitTimeoutError().nameread"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.