Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

errors.LibTmuxErrorCode

TypeScript
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET Unavailable
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
errors
Package
libtmux
Source
packages/libtmux/src/errors.ts
LibTmuxErrorCode
typealias [source]
typealias [source]
LibTmuxErrorCode

Every value 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.

0 declared, 0 inherited

Esc

Type to search.