comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Clever Exception Handling?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Clever Exception Handling? [message #78090] Sun, 23 October 2011 16:32
Matt Francis is currently offline  Matt Francis
Messages: 94
Registered: May 2010
Member
Thanks David, looks like just the thing.

Cheers
Re: Clever Exception Handling? [message #78091 is a reply to message #78090] Sun, 23 October 2011 15:43 Go to previous message
David Fanning is currently offline  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.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Clever Exception Handling?
Next Topic: Re: Random sample selection without replacement (using IMSL_RANDOM_SAMPLE)

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:45:09 PDT 2025

Total time taken to generate the page: 0.00538 seconds