|
Re: Clever Exception Handling? [message #78091 is a reply to message #78090] |
Sun, 23 October 2011 15:43  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Beaker writes:
> I have a large suite of IDL code for near real time data processing
> and visualisation. Errors occur a lot due to corrupted and/or missing
> files and other data quality issues. I use CATCH extensively to
> continue running in the face of such errors but the overall scheme for
> doing so is a bit ad hoc. I'm looking to make the error handling and
> reporting more uniform and clearer and I'm thinking of wrapping CATCH
> in a more fully featured exception handler to make this easier to
> acheive.
>
> This strikes me as something that must have been done before, probably
> many times overs. Before I re-invent the wheel does anyone have some
> good reccomendations for this kind of thing? I seem to recall a recent
> discussion about this, but I can't find it now.
You might want to look at the ErrorLogger program in
the Coyote Library. Combined with a CATCH error handler,
it does a nice job of reporting and logging errors for
later analysis.
http://www.idlcoyote.com/programs/errorlogger__define.pro
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|