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.]] 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