Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

Click here to view the latest version of this page.
PrevUpHomeNext

Class validation_error

boost::program_options::validation_error

Synopsis

// In header: <boost/program_options/errors.hpp>


class validation_error : public boost::program_options::error {
public:
  // construct/copy/destruct
  validation_error(const std::string &);
  ~validation_error();

  // public member functions
  void set_option_name(const std::string &) ;
  const char * what() const;
};

Description

Class thrown when value of option is incorrect.

validation_error public construct/copy/destruct

  1. validation_error(const std::string & what);
  2. ~validation_error();

validation_error public member functions

  1. void set_option_name(const std::string & option) ;
  2. const char * what() const;

PrevUpHomeNext