3 #include <CLI/Error.hpp> 5 #include <fmt/format.h> 11 template <
typename... Args>
13 : Error(
"GeneralError", fmt::format(name,
std::forward<Args>(args)...), 2) {}
17 OutOfRange(std::string name,
double value,
double min,
double max)
18 :
GeneralError(
"{} value {} is not in range {} to {}", name, value, min, max) {}
Thrown when a general error is encountered.
GeneralError(std::string name, Args &&... args)
OutOfRange(std::string name, double value, double min, double max)