Motion Master 6.0.0-alpha.50
Next-generation motion control software
Loading...
Searching...
No Matches
mm::comm::FoeError Struct Reference

A structured FoE failure. String-like where a caller only forwards it (operator<<, .message, what()); branchable where a caller must react (kind, retry). More...

#include <foe_error.h>

Collaboration diagram for mm::comm::FoeError:
[legend]

Public Member Functions

const std::string & what () const
 Exception-shaped accessor for the message, for call sites that prefer .what().
 

Public Attributes

FoeErrorKind kind = FoeErrorKind::Protocol
 
Retry retry = Retry::Transient
 
std::string message
 

Detailed Description

A structured FoE failure. String-like where a caller only forwards it (operator<<, .message, what()); branchable where a caller must react (kind, retry).

Member Function Documentation

◆ what()

const std::string & mm::comm::FoeError::what ( ) const
inline

Exception-shaped accessor for the message, for call sites that prefer .what().

Member Data Documentation

◆ kind

FoeErrorKind mm::comm::FoeError::kind = FoeErrorKind::Protocol

◆ message

std::string mm::comm::FoeError::message

◆ retry

Retry mm::comm::FoeError::retry = Retry::Transient

The documentation for this struct was generated from the following file: