Core Library0.xAPI Reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

struct libtmux-go latest

VersionTooLowError

VersionTooLowError reports the installed and required tmux feature levels. It matches ErrVersionTooLow through errors.Is; callers can recover its fields with errors.As.

Source and package
Qualified name
tmux.VersionTooLowError
Package
tmux
Distribution
github.com/libtmux/libtmux-go/tmux
Source
tmux/server_version.go
struct tmux.VersionTooLowError

Description#

A version that names no release, such as a bare "master" or a distributor's suffix, is refused the same way, and its message says so instead of comparing it with the floor.

Subcommand and Feature are set when one optional capability within a command was refused rather than the command itself, which is what UnsupportedPolicy governs.

Fields4#

VersionTooLowError fields
NameTypeDescription
Current Version Current is the installed tmux feature level.
Feature string Feature names the refused optional capability. Empty when the command itself is below its floor.
Minimum Version Minimum is the requested minimum feature level.
Subcommand string Subcommand names the tmux subcommand whose optional capability was refused. Empty when the command itself is below its floor.

Members3#

  • Error method Error implements error.
  • Reason method Reason describes the refusal without saying what to do about it, for a caller that words its own remedy.
  • Unwrap method Unwrap makes VersionTooLowError compatible with ErrVersionTooLow.
Esc

Type to search.

Reference previewOpen reference