[bind10-dev] Exceptions - nested vs on top of header

JINMEI Tatuya / 神明達哉 jinmei at isc.org
Mon Dec 27 22:31:39 UTC 2010


At Mon, 27 Dec 2010 22:02:00 +0100,
Michal 'vorner' Vaner <michal.vaner at nic.cz> wrote:

> Hmm, and if there would be need to more exception from one class? It could be
> that we could have a class Name, it would have exception Name::Exception
> (deriving from isc::dns::Exception) and, derived from that, Name::EmptyLabel.
> That way, anyone not interested could catch Name::Exception or
> isc::dns::Exception, but those interested could catch Name::EmptyLabel?

Conceptually that's what I meant.  How to implement it - e.g. whether
to define class specific exceptions as a "class-in-class" is a
different question (not necessarily objecting to it).

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.



More information about the bind10-dev mailing list