15 class VertexingErrorCategory :
public std::error_category {
18 const char*
name() const noexcept final {
return "KalmanFitterError"; }
24 switch (static_cast<VertexingError>(
c)) {
25 case VertexingError::NumericFailure:
26 return "Numeric failure in calculation.";
27 case VertexingError::EmptyInput:
28 return "Empty input provided.";
29 case VertexingError::SeedingError:
30 return "Error while finding vertex seed.";
31 case VertexingError::NotConverged:
32 return "Unable to converge.";
33 case VertexingError::ElementNotFound:
34 return "Unable to find element.";
35 case VertexingError::NoCovariance:
36 return "No covariance provided.";
46 static VertexingErrorCategory
c;
47 return {
static_cast<int>(
e), c};