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.

MoreLess about this notice

class libtmux-java

LibTmuxException

The root of every operational failure this library raises.

Source and package
Qualified name
io.github.libtmux.exception.LibTmuxException
Package
io.github.libtmux.exception
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/exception/LibTmuxException.java
class io.github.libtmux.exception.LibTmuxException

Description

Unchecked, because a tmux failure can arise from any call and forcing every caller to declare it would say nothing. Sealed, with every branch abstract, so matching on the permitted subtypes is exhaustive in Java, Kotlin and Scala alike.

A failure that came from a tmux command carries that command, its exit status when it has one, and the error lines tmux printed. Those lines, and the message that quotes them, name what tmux named — sessions, windows, panes and buffers included.

Members4 members

  • command The command that failed, when this failure came from one.
  • errorLines The error lines tmux printed, in full. Empty when this failure has none.
  • exitCode The process exit status, when the failure has one.
  • LibTmuxException

Guides

task material

Pages that discuss LibTmuxException.

Guides
Esc
Search in

Type to search.

Reference previewOpen reference