# tmux.TargetError

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/target.go#L21
- **Page:** https://libtmux.org/reference/go/tmux-targeterror/

TargetError reports a malformed stable identifier before command execution. It matches [ErrInvalidTarget] through errors.Is; callers can recover Object and Target with errors.As.

## Members

- `Object` (attribute) — Object names the tmux object kind whose target was validated.
- `Target` (attribute) — Target is the submitted target text.
- `Error` (method) — Error implements error.
- `Unwrap` (method) — Unwrap makes TargetError compatible with ErrInvalidTarget.
