From: Andrey Semashev (andysem_at_[hidden])
Date: 2007-02-03 17:19:20
Sunday, February 4, 2007, 1:02:12 AM, you wrote:
> Andrey Semashev <andysem <at> mail.ru> writes:
>> And maybe a good idea is to pass an actual value that triggered the default
>> handler in the exception object.
> Do you think I should store the value as an integer
> or lexical_cast it to a string and pass it to the
> constructor of std::runtime_error? If I store it as
> an integer, no matter what type I use, it could
I think the value should be in the error message. But you also can
store it as intmax_t value in the exception. I think, this would be
sufficient for 99% cases.
-- Best regards, Andrey mailto:andysem_at_[hidden]
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk