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

Home » Public Forums » archive » Re: Questions about using CATCH
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: Questions about using CATCH [message #34046 is a reply to message #34045] Wed, 12 February 2003 21:36 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Jonathan Greenberg (greenberg@ucdavis.edu) writes:

> Couple of questions about "catch":
>
> 1) If I have two catch calls in the save program, will the program return to
> the most recent catch statement (and error handling procedure)?

Yes, only one CATCH can be current in a program module
at any one time, but you can put as many as you like, to
catch as many errors as you like, in your program module.
When an error occurs, you will be directed to the first
line of code after the CATCH that is currently registered
for that program module.

> 2) Can I supress the output of a "caught" error (e.g. I assume that my error
> handler worked, so I don't want to see the error each time)?

You can do whatever you like. :-)

I don't recommend, however, handling errors silently.
Debugging programs that handle errors silently can
be similar to a bad drug experience. After a couple of
days of it, you are completely psychotic. :-(

Cheers,

David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Previous Topic: IDL objects and names
Next Topic: SQL access without Dataminer

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

Current Time: Sat Oct 11 15:51:28 PDT 2025

Total time taken to generate the page: 0.48083 seconds