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.

struct libtmux-go latest

MissingTargetError

MissingTargetError reports an operation attempted on a zero-value model identity. It matches ErrMissingTarget through errors.Is; callers can recover Object with errors.As.

Source and package
Qualified name
tmux.MissingTargetError
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/target.go
struct tmux.MissingTargetError

Description#

A relation accessor such as Session.ActiveWindow or Session.Windows returns ok false rather than a value with no id, and a creation call such as Server.NewSession carries 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 fresh Server.Snapshot instead.

Fields1#

MissingTargetError fields
NameTypeDescription
Object string Object names the tmux object kind with no id: "session", "window", "pane", or "client".

Members2#

  • Error method Error implements error.
  • Unwrap method Unwrap makes MissingTargetError compatible with ErrMissingTarget.
Esc

Type to search.

Reference previewOpen reference