Exception vs. Error

Stewart Gordon smjg_1998 at yahoo.com
Fri Mar 30 11:02:12 PDT 2007


"Sean Kelly" <sean at f4.ca> wrote in message 
news:euh89g$665$1 at digitalmars.com...
> Stewart Gordon wrote:
>>
>> You're probably right.  I'm wondering whether it would make sense for 
>> Exception to derive from Error.
>
> I don't think it would.  If Errors are not recoverable, then that suggests 
> that Exceptions would not be recoverable as well.  The reverse problem 
> holds when Exception derives from Error.
<snip>

Not necessarily.  An Error could be defined as simply an error, not as 
recoverable or unrecoverable.  And Exception would then be a particular kind 
of error: one that's recoverable.

But still, with what you go on to say (and what I had begun to say) about 
recoverability depending on your point of view, maybe there isn't much point 
trying to classify them.

Stewart. 



More information about the Digitalmars-d-learn mailing list