Catching Errors

Jacob Carlborg via Digitalmars-d digitalmars-d at puremagic.com
Thu Jan 19 23:50:23 PST 2017


On 2017-01-20 03:11, Adam D. Ruppe wrote:

> It is just that Errors are not necessarily *thrown*. The implementation
> is allowed to immediately abort on them too - your catch has no
> guarantee to actually run, whereas with Exceptions, they are.

That doesn't work well with a unit test framework that want to catch 
assertions to be able to continue with other tests.

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list