13 namespace ActsFatras {
18 class SimulationErrorCategory final :
public std::error_category {
20 const char*
name() const noexcept final {
return "SimulationError"; }
22 switch (static_cast<SimulationError>(
c)) {
23 case SimulationError::eInvalidInputParticleId:
24 return "Input particle id with non-zero generation or sub-particle";
31 const SimulationErrorCategory s_simulatorErrorCategory;
36 return {
static_cast<int>(
e), s_simulatorErrorCategory};