15 class MultiStepperErrorCategory :
public std::error_category {
18 const char*
name() const noexcept final {
return "MultiStepperError"; }
24 switch (static_cast<MultiStepperError>(
c)) {
25 case MultiStepperError::ComponentNotOnSurface:
26 return "Component is not on a surface";
27 case MultiStepperError::StateOfMultipleComponentsRequested:
28 return "The global BoundState/CurvilinearState can only be computed if "
29 "only one component exists";
30 case MultiStepperError::AverageTrackLeftCurrentVolume:
31 return "The average track has left the current volume";
32 case MultiStepperError::AllComponentsSteppingError:
33 return "Stepping error occurred in all components";
34 case MultiStepperError::AllComponentsConversionToBoundFailed:
35 return "The conversion to the bound state failed for all components";
36 case MultiStepperError::SomeComponentsConversionToBoundFailed:
37 return "The conversion to the bound state failed for some components";
47 static MultiStepperErrorCategory
c;
48 return {
static_cast<int>(
e), c};