Program logic bugs vs input/environmental errors (checked exceptions)
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Sun Oct 5 08:40:21 PDT 2014
On 10/5/14, 8:08 AM, Marco Leise wrote:
> Nice, finally someone who actually wants to discern Exception
> types. I'm always at a loss as to what warrants its own
> exception type. E.g. when looking at network protocols, would
> a 503 be a NetworkException, a HTTPException or a
> HTTPInternalServerErrorException ?
> Where do*you* wish libraries would differentiate?
> Or does it really come down to categories like "illegal
> argument", "division by zero", "null pointer", "out of memory"
> for you?
That reflects my misgivings about using exception hierarchies for error
kinds as well. -- Andrei
More information about the Digitalmars-d
mailing list