Boost logo

Boost :

Subject: Re: [boost] Boost and exceptions
From: Sergey Popov (loonycyborg_at_[hidden])
Date: 2012-06-26 06:57:56


On Mon, 25 Jun 2012 15:58:14 -0700
Emil Dotchevski <emildotchevski_at_[hidden]> wrote:

> A side note, it usually isn't a good idea to store user messages in
> exception objects. Typically, messages need to be localized, and that
> is outside of the scope of most of the application code, nevermind
> library level code.
In order to localize them you need to keep track of all possible error
messages in a .po file, and since new error codes can appear in new
library version this can be only dependably handled at library level.
Otherwise we'll either have to lose the original message or display it
in English. Translating messages from libraries in apps just won't
scale.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk