tmux.MissingTargetError
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/target.go
-
MissingTargetError reports an operation attempted on a zero-value model identity. It matches
ErrMissingTargetthrough errors.Is; callers can recover Object with errors.As.A relation accessor such as
Session.ActiveWindoworSession.Windowsreturns ok false rather than a value with no id, and a creation call such asServer.NewSessioncarries no relations at all - so using a discarded or freshly created value's zero-value fields reaches this error on the first operation. Resolve live state with a Resolve* method or a freshServer.Snapshotinstead.
3 declared, 0 inherited