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

Home » Public Forums » archive » Re: !ERR and MPFIT
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: !ERR and MPFIT [message #17894 is a reply to message #17886] Wed, 17 November 1999 00:00 Go to previous messageGo to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
Pavel Romashkin <promashkin@cmdl.noaa.gov> writes:
>
> I apologize if I am missing a problem with error handling that Craig is
> solving. I just want to ask why can't you use CATCH to handle errors
> conditions? It seems to me that CATCH combined with MESSAGE procedure works
> quite well for user-defined errors, and CATCH by itself works great for
> internal IDL routines. This also eliminates the need for separate error
> handlers.

In this case it's more of a termination condition than an error. For
example, the user function may decide that a parameter has gotten out
of bounds unrecoverably. I would like MPFIT to return gracefully
rather than barfing if possible, so the user routine needs a way to
signal MPFIT that something is wrong.

Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: determining the display size (IDL)
Next Topic: Re: Floating base widget

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

Current Time: Fri Oct 10 19:39:24 PDT 2025

Total time taken to generate the page: 0.39931 seconds