[MOAB-dev] Error handling documentation/examples

Paul Wilson paul.wilson at wisc.edu
Sat Feb 6 13:38:46 CST 2016


Hi there,

I have found all the error handling macros and mostly understand how 
they all work.  What is less clear is the best practice/convention for 
setting/returning errors down a deep call stack.  If method A calls 
method B calls method C calls method D, should I necessarily check for 
return values and apply error macros at each step in the stack?  Or once 
I have checked an error at a deeper level, is it less important to call 
the error macros as I return back up the stack?

Any examples or guidance are welcome.

Thanks,
Paul

-- 
-- ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ --
Paul Wilson ~ UW-Madison ~ 608-263-0807 ~ cal: http://go.wisc.edu/pphw-cal
Professor, Engineering Physics. ~ http://cnerg.engr.wisc.edu
Faculty Director, Advanced Computing Infrastructure ~ http://aci.wisc.edu



More information about the moab-dev mailing list