[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] [PATCH] Add undisplayable_exception

From: Greg Chicares
Subject: Re: [lmi] [PATCH] Add undisplayable_exception
Date: Sat, 11 Oct 2014 16:08:56 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 2014-10-11 14:26Z, Greg Chicares wrote:
> On 2014-10-09 19:00Z, Greg Chicares wrote:
>> Just one small question. Is there a reason why this extraordinary
>> exception class should derive from std::runtime_error rather than
>> from std::exception?
> I assume that's okay, because [...]

Oh, wait--it really is better to derive from a <stdexcept> class,
because that makes the implementation trivial: you don't have to
declare a std::string member and supply a definition of what()
that uses that member. And std::runtime_error is a better fit
than std::logic_error. Should I change this accordingly?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]