# tmux.CaptureRequestError

- **Module:** tmux
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** struct
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/pane_capture.go#L28
- **Page:** https://libtmux.org/reference/go/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.
