The Right Approach to Exceptions

Ben Hanson Ben.Hanson at tikit.com
Mon Mar 5 11:02:30 PST 2012


On Saturday, 18 February 2012 at 22:35:58 UTC, Jonathan M Davis
wrote:
> I'd hate to see us have a crippled exception hierarchy just 
> because some
> people mishandle exceptions and simply print out messages on 
> failure in all
> cases. Obviously sometimes that's what you have to do, but 
> often you can
> handle them much better, and that's part of the reason that we  
> have
> _Exception_ and not just Error. And a proper exception 
> hierarchy can be very
> benificial to programmers who actually use it correctly.

+1

Inheritance in general can (and is) misused too. Does that mean
that should also be banned?

Regards,

Ben


More information about the Digitalmars-d mailing list