12 explicit CLIError(
const std::string& msg) : std::runtime_error(msg) {}
26 :
CLIError(
"Option missing: " + option) {}
38 :
CLIError(
"Unknown command: " + cmd) {}
Base class for CLI-related errors.
CLIError(const std::string &msg)
An error is thrown when an unknown command is passed.
CommandNotFoundError(const std::string &cmd)
An error is thrown when a required option is not provided.
OptionMissingError(const std::string &option)