[kea-dev] thoughts on #3780

Stephen Morris stephen at isc.org
Fri Oct 23 14:28:00 UTC 2015


> On 10/23/15 9:15 AM, Stephen Morris wrote:
>> On 22/10/2015 16:49, Thomas Markwalder wrote:
>
>> A possible alternative to calling exit() is to replace all "catch (...)"
>> clauses with:
>>
>> catch (const isc::FatalException&) {
>>     throw;
>> }
>> catch (...) {
>>    :
>> }
> Actually it isn't just "catch (...)", we have to look at
> catch(std::exception)
> and/or catch(isc::Exception).  The latter depending upon the class from
> which
> a new FatalException is derived.

If FatalException is derived from neither std::exception nor
isc::Exception, we won't have to worry about those catch clauses.

Stephen



More information about the kea-dev mailing list