[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Catching type conversion errors
- Subject: Catching type conversion errors
- From: hegde(at)PROBLEM_WITH_INEWS_DOMAIN_FILE (M. Hegde)
- Date: 29 Dec 1998 14:41:20 GMT
- Newsgroups: comp.lang.idl-pvwave
- Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:13229
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