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

Home » Public Forums » archive » Re: IDL 8.0 bug -- line number of errors not given
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: IDL 8.0 bug -- line number of errors not given [message #72892 is a reply to message #72891] Tue, 12 October 2010 19:42 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
On Oct 12, 6:16 pm, Paul van Delst <paul.vande...@noaa.gov> wrote:

> Maybe people should start switching to using CATCH instead for their day-to-day error handling?

OK, here's my simpleton reason for not using CATCH. If I use
ON_ERROR I just add 1 line of code at the beginning of each procedure

On_error, 2

But if I use CATCH I need to add a whole paragraph somewhere (where?)
in the code

Catch, theError
IF theError NE 0 THEN BEGIN
Catch, /Cancel
void = Error_Message()
RETURN
END

So what are the advantages of using CATCH? (This is not a trick
question -- I've had a mental block about how to use CATCH.) --Wayne
[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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: execute an idl procedure without seeing idl workbench
Next Topic: convenient graphical object syntax

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

Current Time: Wed Oct 08 19:53:07 PDT 2025

Total time taken to generate the page: 0.00408 seconds