\brief Exception thrown if a function's guard fails
| 324 | { |
| 325 | /// \brief Exception thrown if a function's guard fails |
| 326 | class guard_error : public std::runtime_error |
| 327 | { |
| 328 | public: |
| 329 | guard_error() noexcept |
| 330 | : std::runtime_error("Guard evaluation failed") |
| 331 | { } |
| 332 | |
| 333 | guard_error(const guard_error &) = default; |
| 334 | |
| 335 | ~guard_error() noexcept override = default; |
| 336 | }; |
| 337 | } |
| 338 | |
| 339 | namespace dispatch |