[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Catching type conversion errors



M. Hegde wrote:
> 
> Hi,
> 
> I observe that CATCH doesn't capture type conversion errors ( in the absence
> of ON_IOERROR command ). This appears to violate the error handling mechanism
> given in the IDL user's guide. Am I missing something? Are there any other
> errors which CATCH can not capture?
> 
> Thanks in advance.
> 
> -M. Hegde
> 
> ex:
>         PRO test
>         CATCH, err
>         IF ( err NE 0 ) THEN BEGIN
>                 PRINT, !ERROR
>                 RETURN
>         ENDIF
>         a       = FIX ( 'abc' )
> 
>         END

same behaviour ...
{ mipseb IRIX unix 5.1.1 Jul 20 1998}
This definitively runs counter what they say in the online help, and
should therefore considered a real bug.

Martin.
-- 
-------------------------------------------------------------------
Dr. Martin Schultz                   
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax  : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
-------------------------------------------------------------------