errors.TmuxCommandError
TypeScript
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript
- Rust Unavailable
- Go Unavailable
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- errors
- Package
- libtmux
- Source
- packages/libtmux/src/errors.ts
-
A tmux command that exited non-zero.
The parts are fields rather than a formatted sentence so callers can branch on them. Matching a message substring is the failure mode this replaces: it breaks silently when tmux rewords, and it cannot distinguish "already in the requested state" from a genuine error.
Discussed in Errors and exceptions
8 declared, 0 inherited
Members
- args attribute
- code attribute
- constructor method
- exitCode attribute
- stderr attribute
- stderrIncludes method Whether tmux's own message contains a phrase, without message parsing at call sites.
- stdout attribute Whatever the command printed before it failed.
- target attribute