15 class EigenStepperErrorCategory :
public std::error_category {
18 const char*
name() const noexcept final {
return "EigenStepperError"; }
24 switch (static_cast<EigenStepperError>(
c)) {
25 case EigenStepperError::StepSizeStalled:
26 return "Step size fell below minimum threshold";
27 case EigenStepperError::StepInvalid:
28 return "Step calculation was invalid";
29 case EigenStepperError::StepSizeAdjustmentFailed:
30 return "Step size adjustment exceeds maximum trials";
40 static EigenStepperErrorCategory
c;
41 return {
static_cast<int>(
e), c};