[Boost-bugs] [Boost C++ Libraries] #11058: (parsing) Some thrown exceptions's messages are missing important info about the offending options

Subject: [Boost-bugs] [Boost C++ Libraries] #11058: (parsing) Some thrown exceptions's messages are missing important info about the offending options
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-25 10:45:32


#11058: (parsing) Some thrown exceptions's messages are missing important info
about the offending options
---------------------------------+------------------------------
 Reporter: Denis N <dzinyss@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.57.0
 Severity: Problem | Keywords:
---------------------------------+------------------------------
 The "unknown_option" exception has a message that looks like
 "unrecognized option".

 This can be easily improved by modifying the line
 cmdline.cpp:427

 to:
 boost::throw_exception(unknown_option(opt.string_key));

 //////////////////
 Similar issue with " multiple occurences" exception.
 The exception message does not specify which of the options occured
 multiple times.
 This can be fixed by adding the constructor parameter in
 "multiple_occurences" exception class, and passing it to the parent class.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11058>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC