Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class validation_error

boost::program_options::validation_error

Synopsis

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


class validation_error : public  {
public:

  enum kind_t { multiple_values_not_allowed = 30, at_least_one_value_required, 
                invalid_bool_value, invalid_option_value, invalid_option };

  // public member functions
  (,  = "",  = "", 
                    = );
   () ;

  // protected member functions
   ();
};

Description

Class thrown when value of option is incorrect.

validation_error public member functions

  1. ( kind,  option_name = "", 
                      original_token = "", 
                      option_style = );
  2.  () ;

validation_error protected member functions

  1.  ( kind);

    Used to convert kind_t to a related error text


PrevUpHomeNext