15 class MagneticFieldErrorCategory :
public std::error_category {
18 const char*
name() const noexcept final {
return "MagneticFieldError"; }
24 switch (static_cast<MagneticFieldError>(
c)) {
25 case MagneticFieldError::OutOfBounds:
26 return "Interpolation out of bounds was requested";
36 static MagneticFieldErrorCategory
c;
37 return {
static_cast<int>(
e), c};