What's the best way to find out which exceptions may be thrown ?

Mike Parker aldacron at gmail.com
Wed May 27 09:42:58 UTC 2020


On Wednesday, 27 May 2020 at 09:40:08 UTC, wjoe wrote:

>
> The compiler will complain that bar(int) isn't nothrow.
>
> What's the best way to find out which Exceptions aren't handled 
> inside of foo() for foo to be able to be nothrow without using 
> a 'catch (Exception){}' catch-all?

`catch(Exception)`.


More information about the Digitalmars-d-learn mailing list