Exception Hierarchy [WAS: Re: Top 5]
Denis Koroskin
2korden at gmail.com
Thu Oct 16 10:06:12 PDT 2008
On Thu, 16 Oct 2008 19:07:12 +0400, Sean Kelly <sean at invisibleduck.org>
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.
>
Will we still be able to throw Object? Is Throwable an interface or a
class?
More information about the Digitalmars-d
mailing list