# tmux.ServerCommandRequestError

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/server_exec.go#L28
- **Page:** https://libtmux.org/en/go/latest/reference/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.
