Core LibraryalphaAPI 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.

function libtmux-cxx latest

as_protocol_error

The other direction, for a caller handing a command failure to a surface that speaks the wire's type.

Source and package
Qualified name
libtmux::as_protocol_error
Namespace
libtmux
Package
libtmux-cxx
Source
include/libtmux/error.hpp
[[C++ nodiscard attributeAsks the compiler to warn when a result is discarded. An explicit cast to void acknowledges that the result is intentionally ignored.Language documentation]] ProtocolError as_protocol_error(CommandFailure failure);

Description#

The kind is dropped because the wire has no word for it; the diagnostic carries what it said.

Parameters
Esc

Type to search.

Reference previewOpen reference