Exception Hierarchy [WAS: Re: Top 5]

Bruno Medeiros brunodomedeiros+spam at com.gmail
Thu Oct 16 10:02:00 PDT 2008


Sean Kelly wrote:
> Bruno Medeiros wrote:
>>
>> I agree there should be a distinction between recoverable exceptions 
>> (normal exceptions) and nonrecoverable exceptions (contract 
>> failures?). I agree that "Exception" should be the name for normal 
>> exceptions. The others could be named "Error" or "Failure".
>> If we want the ability to catch these two separately, I don't see any 
>> other way other than having a third, top-level class, ie, a 
>> "Throwable", from which Exception and Error/Failure derive from.
> 
> This is exactly the design that was decided upon.
> 

Cool! :)



-- 
Bruno Medeiros - Software Developer, MSc. in CS/E graduate
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D



More information about the Digitalmars-d mailing list