AssertError

BCS nothing at pathlink.com
Sat Dec 30 09:03:04 PST 2006


Valery wrote:
> When I want to unittest the incorrect behaviour of a component, I
> often write something like
> 
> try {
>   // this code throws AssertError
> } catch (Error e) { }
> 
> What I really want is to catch AssertError instead of Error, but
> is is not in object nor elsewhere in phobos.
> 
> Is it possible to catch exactly AssertError ?

incluse std.asserterror;



More information about the Digitalmars-d mailing list