# tmux.ServerCommandRequestError

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

ServerCommandRequestError reports a locally rejected server command request field. Callers can use [errors.Is] with [ErrInvalidServerCommandRequest] or [errors.As] to inspect it. Value is redacted only when that field's validator requests redaction.

## Members

- `Subcommand` (attribute) — Subcommand is the tmux command whose request was rejected.
- `Field` (attribute) — Field is the request field that was rejected.
- `Value` (attribute) — Value is the rejected value, or "[redacted]" for a secret-sensitive field.
- `Reason` (attribute) — Reason describes the validation failure without changing the sentinel error.
- `Error` (method) — Error implements error.
- `Unwrap` (method) — Unwrap makes ServerCommandRequestError compatible with ErrInvalidServerCommandRequest.
