The Right Approach to Exceptions
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Feb 20 18:39:15 PST 2012
On 2/20/12 7:32 PM, Juan Manuel Cabo wrote:
> Well... then why did this mistakes exist?:
>
> In dot NET:
>
> ComException - Exception encapsulating COM HRESULT information
> SEHException Exception encapsulating Win32 structured exception handling information.z
>
> http://msdn.microsoft.com/en-us/library/z4c5tckx%28v=VS.71%29.aspx
>
> And why do you think that a thing like standardizing DatabaseException
> never survives users, and that each database manager library defines its
> own top *DatabaseException base class?
>
> This is a universal problem with transversal traits of exceptions.
Yes, exactly. Exceptions are poorly equipped to address cross-cutting
concerns, which is odd because they are themselves a cross-cutting
matter :o). The solution is, I think, to find improved abstractions.
Andrei
More information about the Digitalmars-d
mailing list