Program logic bugs vs input/environmental errors (checked exceptions)
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Wed Oct 1 23:36:27 PDT 2014
On 02/10/14 01:19, Andrei Alexandrescu wrote:
> My recollection is that was only talked about. Anyhow, one thing is
> clear - as of now there are no clear idioms and successful techniques
> for handling errors with exceptions (including the use of subtyping). --
> Andrei
I think most error handling is done with "enforce", this will, by
default, throw an instance of Exception. I really, really hate this. I
think Exception should be an abstract class or an interface.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list