# tmux.CaptureRequestError

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/pane_capture.go#L29
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-capturerequesterror/

CaptureRequestError reports a [CapturePaneRequest] field that cannot be represented as a tmux capture-pane argument. It matches [ErrInvalidCaptureRequest] through [errors.Is] and is available through [errors.As].

## Members

- `Field` (attribute): Field names the invalid request field.
- `Value` (attribute): Value is the rejected field value. It may be empty when absence is the error.
- `Reason` (attribute): Reason describes the violated request constraint without promising a stable complete error string.
- `Error` (method): Error implements error.
- `Unwrap` (method): Unwrap makes CaptureRequestError compatible with ErrInvalidCaptureRequest.
