Throwable, Exception, and Error

Denis Koroskin 2korden at gmail.com
Sun May 3 04:22:59 PDT 2009


On Sun, 03 May 2009 09:57:02 +0400, Frank Benoit <keinfarbton at googlemail.com> wrote:

> Walter Bright schrieb:
>> Steve Teale wrote:
>>> If I want a catch-all catch, which should I be using.
>>>
>>> Out of habit I use Exception, but if I do that then I will miss some
>>> things thrown from Phobos.
>>>
>>> Is it the intention that Throwable be used for this purpose?
>>>
>>
>> Yes.
>
> Why is it possible to throw an Object?
> I think "throw" and "catch" should be restricted to Throwable and
> derived types.

This is going to be addressed, so no worries.




More information about the Digitalmars-d mailing list