lmi
[Top][All Lists]
Advanced

[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: Thu, 09 Oct 2014 19:00:28 +0000
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 2014-10-09 14:40Z, Vadim Zeitlin wrote:
> 
>  But, again, please let me know if you see some way to make it work without
> exposing wx_test_exception at all, I just don't see it.

I'm with you. Maybe there's some ridiculous, abusive way by using
RTTI to switch on type, but that's freakish.

Just one small question. Is there a reason why this extraordinary
exception class should derive from std::runtime_error rather than
from std::exception? Couldn't the GUI-test code sometimes throw
something more like the standard logic_error classes:
  {domain_error, invalid_argument, length_error, out_of_range}
which [19.1.1/1] "report errors presumably detectable before the
program executes, such as violations of logical preconditions or
class invariants"?




reply via email to

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