class libtmux-dotnet latest
LibTmuxException
Provides the base exception for remote tmux failures.
Source and package
- Module
- LibTmux
- Package
- LibTmux
- Source
- src/LibTmux/Exceptions/LibTmuxException.cs
-
Description#
Every failure carries a
Dispatchstate, 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
Members2 members#
Common operations1 member#
- Dispatch property Gets whether the command reached tmux, and so whether a retry is safe.
Other members1 member#
- LibTmuxException method Initializes a LibTmux exception whose dispatch state is unknown.