|
From: Marcus B. <ma...@la...> - 2004-02-15 22:13:29
|
Hi... Jeff Moore wrote: > Should I put a swallowErrors() call after my assertError() to prevent > the exceptions? Yes, that will cure it. As Jason suggests that may swallow other errors unless you have a discriminatory enough match, so it really depends on the specific example. The alternative is to have a return statement after the trigger_error(). If someones app. uses WACT inside a custom error handler, you would need to document the behaviour anyway, so that extra return statement may ultimately be a simplification. I don't see an easy way out of this until we finally get exceptions. > > If so, should I put a swallowErrors() call at the end of every test case > that calls assertError? If you really need to do that as a blanket case. This example seems unusual to me. > > Thanks, > > Jeff yours, Marcus -- Marcus Baker, ma...@la..., no...@ap... |