DIP33: A standard exception hierarchy

H. S. Teoh hsteoh at quickfur.ath.cx
Tue Apr 2 09:39:53 PDT 2013


On Tue, Apr 02, 2013 at 05:47:30PM +0200, Lars T. Kyllingstad wrote:
[...]
> I have thought some more about it, and a basic serial comms error
> should probably be an IOException.  An error in a higher-level serial
> protocol, on the other hand, would be a NetworkException, and then the
> name doesn't suck so much.  CommException may still be better though,
> or maybe ProtocolException.
[...]

ProtocolException sounds like a low-level TCP or IP exception. I think
NetworkException is still the best name, not overly specific, not overly
generic. CommException sounds a bit too vague to me.


T

-- 
What are you when you run out of Monet? Baroque.


More information about the Digitalmars-d mailing list