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

Home » Public Forums » archive » Re: Error Handling Advice
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Error Handling Advice [message #82732 is a reply to message #82731] Fri, 11 January 2013 15:17 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

I guess I should make one more point.

9. CATCH error handlers are to catch program errors that I know
inevitably occur, but that I don't anticipate. People will use your code
in God only knows how many awful ways. I'm not omniscient. But, on the
other hand, I'm not lazy either. I check EVERY SINGLE ONE of my
parameters and I try to anticipate common errors and check for those.
Sometimes it is embarrassing how much code is error handling code in a
small program. Don't use CATCH error handlers because you are too lazy
to do any work. Even Coyote is not *that* depraved.

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Using function after .reset
Next Topic: Transparent and Overplotted Images with cgImage

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

Current Time: Sun Oct 12 04:51:00 PDT 2025

Total time taken to generate the page: 2.51601 seconds