15 class GsfErrorCategory :
public std::error_category {
18 const char*
name() const noexcept final {
return "GsfError"; }
24 switch (static_cast<GsfError>(
c)) {
25 case GsfError::StartParametersHaveNoCovariance:
26 return "Start parameters have no Covariance";
27 case GsfError::StartParametersNotOnStartSurface:
28 return "Start parameters don't lie in the start surface";
29 case GsfError::NoMeasurementStatesCreatedForward:
30 return "No measurement states found in the forward pass";
31 case GsfError::NoMeasurementStatesCreatedBackward:
32 return "No measurement states found in the backward pass";
33 case GsfError::NoMeasurementStatesCreatedFinal:
34 return "No measurement states in the final trajectory";
44 static GsfErrorCategory
c;
45 return {
static_cast<int>(
e), c};