16 class DigitizationErrorCategory :
public std::error_category {
19 const char*
name() const noexcept final {
return "DigitizationError"; }
25 switch (static_cast<DigitizationError>(
c)) {
26 case DigitizationError::SmearingOutOfRange:
27 return "Smeared out of surface bounds.";
28 case DigitizationError::SmearingError:
29 return "Smearing error occured.";
30 case DigitizationError::UndefinedSurface:
31 return "Surface undefined for this operation.";
32 case DigitizationError::MaskingError:
33 return "Surface mask could not be applied.";
43 static DigitizationErrorCategory
c;
44 return {
static_cast<int>(
e), c};