Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3694: First letter of error messages should be in uppercase
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-12-06 13:51:24
#3694: First letter of error messages should be in uppercase
--------------------------------------------------+-------------------------
Reporter: Vadim Guchenko <techmsgs@â¦> | Owner: vladimir_prus
Type: Bugs | Status: new
Milestone: Boost 1.42.0 | Component: program_options
Version: Boost 1.40.0 | Severity: Cosmetic
Keywords: |
--------------------------------------------------+-------------------------
Comment(by s_ochsenknecht):
You're talking about the messages/strings returned by the what() function
of the related exception type. These strings are NOT meant to give an
error message to user. Of course you can use them, but you don't have
control over them (localisation etc.).
The use of different exception types/classes enables you to generate your
own error messages which fit in your environment/application.
You catch the exception and depending on the catched type you generate an
error/warning/message or whatever to the user.
The what() message can be seen as a fall-back if you don't have an
appropriate handling of the related exception.
Does it make sense?
Cheers,
SAscha
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3694#comment:5> 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:02 UTC