tmux.OptionError
Go
- Python Unavailable
- Ruby Unavailable
- Lua Unavailable
- TypeScript Unavailable
- Rust Unavailable
- Go
- Java Unavailable
- .NET Unavailable
- C++ Unavailable
- Swift Unavailable
- Module
- tmux
- Package
- github.com/libtmux/libtmux-go/tmux
- Source
- tmux/option_error.go
-
OptionError reports a completed high-level option or hook failure. It matches
ErrOptionand a specific option sentinel through errors.Is; callers can recover its fields with errors.As. Library-created errors retain only Result.ExitCode. Error never renders command output because option values and hook commands may be secret; callers may construct exported values with other contents.
5 declared, 0 inherited
Members
- Error method Error implements error.
- Name attribute Name is the option or hook name, when available.
- Result attribute Result contains the library-created error's exit code and no diagnostics.
- Subcommand attribute Subcommand is the failed tmux option or hook subcommand.
- Unwrap method Unwrap makes OptionError compatible with ErrOption and its specific kinds.