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

LibTmux.LibTmuxException

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

View as Markdown

Module
LibTmux
Package
LibTmux
Source
src/LibTmux/Exceptions/LibTmuxException.cs
class LibTmux.LibTmuxException
class [source]
class [source]
class LibTmux.LibTmuxException

Provides the base exception for remote tmux failures.

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.
}

Discussed in Errors and exceptions

2 declared, 0 inherited

Members

  • Dispatch property Gets whether the command reached tmux, and so whether a retry is safe.
  • LibTmuxException method Initializes a LibTmux exception whose dispatch state is unknown.
Esc

Type to search.