Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class invalid_syntax

boost::program_options::invalid_syntax

Synopsis

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


class invalid_syntax : public  {
public:

  enum kind_t { long_not_allowed = = 30, long_adjacent_not_allowed, 
                short_adjacent_not_allowed, empty_adjacent_parameter, 
                missing_parameter, extra_parameter, unrecognized_line };
  // construct/copy/destruct
  (,  = "",  = "", 
                  = );
  ~();

  // public member functions
   () ;
   () ;

  // protected member functions
   ();
};

Description

Class thrown when there's syntax error either for command line or config file options. See derived children for concrete classes.

invalid_syntax public construct/copy/destruct

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

invalid_syntax public member functions

  1.  () ;
  2.  () ;

    Convenience functions for backwards compatibility

invalid_syntax protected member functions

  1.  ( kind);

    Used to convert kind_t to a related error text


PrevUpHomeNext