15 class PropagatorErrorCategory :
public std::error_category {
18 const char*
name() const noexcept final {
return "PropagatorError"; }
24 switch (static_cast<PropagatorError>(
c)) {
25 case PropagatorError::Failure:
26 return "Propagation failed";
27 case PropagatorError::WrongDirection:
28 return "Propagation occurred in the wrong direction";
29 case PropagatorError::StepCountLimitReached:
30 return "Propagation reached the configured maximum number of steps";
40 static PropagatorErrorCategory
c;
41 return {
static_cast<int>(
e), c};