Returns the text of the error message specified by the input error number.
However, you should take care not to make the assumption in your programs that certain error numbers always correspond to certain error messages, as this correspondence may change as PV-WAVE is modified over time.
FUNCTION READ_DATA, file_name
ON_IOERROR, bad
OPENR, unit, file_name, /Get_Lun
a = FLTARR(100)
READU, unit, a
GOTO, DONE
bad:
PRINT, STRMESSAGE(!ERROR)
DONE: FREE_LUN, unit
RETURN, a
a
is undefined if an error occurred.
END
System Variables: !Err, !Err_String
For more information on error handling, see Chapter 10, Programming with PV-WAVE, in the PV-WAVE Programmer's Guide.