Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3423: Diagnostic of errors.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-18 07:00:03
#3423: Diagnostic of errors.
--------------------------------------------+-------------------------------
Reporter: Alex Bukreev <bucreev@â¦> | Owner: vladimir_prus
Type: Feature Requests | Status: new
Milestone: Boost 1.41.0 | Component: program_options
Version: Boost 1.40.0 | Severity: Problem
Keywords: |
--------------------------------------------+-------------------------------
Changes (by Sascha Ochsenknecht <s.ochsenknecht@â¦>):
* cc: s.ochsenknecht@⦠(added)
Comment:
I just attached a patch.
It adds the member function get_option_name() to the exceptions:
unknown_option, multiple_values, multiple_occurrences and validation_error
The option name is set when exception is thrown, this gives the
possibility for an appropriate error reporting when catching these
exceptions.
I also added a new test case program_options/test/exception_test.cpp which
checks some exceptions. This test is not fully complete but a good place
to add checks related to exceptions.
Please comment.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3423#comment:2> 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:01 UTC