Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

attribute libtmux-ts latest

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
LibTmuxError.code
Module
errors
Declared in
LibTmuxError
Package
libtmux
Source
packages/libtmux/src/errors.ts

Description#

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.

Esc

Type to search.

Reference previewOpen reference