List of exceptions?

DMon no at mail.com
Sat Oct 10 16:16:09 UTC 2020


On Saturday, 10 October 2020 at 16:00:26 UTC, Ali Çehreli wrote:
> On 10/10/20 8:46 AM, DMon wrote:
>> On Saturday, 10 October 2020 at 14:56:31 UTC, Ali Çehreli 
>> wrote:
>>> On 10/10/20 5:12 AM, DMon wrote:
>>>> Is there a list of a list of the exceptions or what can be 
>>>> used with catch?
>>>
>>> Only Throwable and classes that are derived from it can be 
>>> thrown and caught.
>>>
>>> Ali
>> Is explicite cathing the best practice or is implicite how its 
>> done?
>
> I don't know implicit catching. I would like to learn from 
> others.
>
> Ali

Maybe those are the wrong words.
catch (Exception e) // implicit (any exception)
catch (ConvException f) // explicit (conversion only)

Or is that not correct?

You wrote a book and I'm typing snippets.


More information about the Digitalmars-d-learn mailing list