02-Apr-2013 20:39, H. S. Teoh пишет:
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.
Yeah, I've come to conclusion that NetworkException beats CommException
in 90% of cases. The rest 10% can leave with Network being a sane name.
--
Dmitry Olshansky