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-dotnet

LibTmuxException

Provides the base exception for remote tmux failures.

Source and package
Qualified name
LibTmux.LibTmuxException
Namespace
LibTmux
Package
LibTmux
Source
src/LibTmux/Exceptions/LibTmuxException.cs
class LibTmux.LibTmuxException

Description

Every failure carries a Dispatch state, so the question a caller asks in a catch block — is it safe to run this again? — is answered on the exception rather than inferred from its type.

Examples

catch (LibTmuxException error) when (error.Dispatch == TmuxDispatchState.NotDispatched)
{
// tmux never saw it, so sending it again repeats nothing.
}

Properties1

LibTmuxException properties
NameTypeDescription
Dispatch TmuxDispatchState Gets whether the command reached tmux, and so whether a retry is safe.

Members1 members

  • LibTmuxException Initializes a LibTmux exception whose dispatch state is unknown.

Guides

task material

Pages that discuss LibTmuxException.

Esc
Search in

Type to search.

Reference previewOpen reference