IDL Error Codes

QUESTION: I see every error in IDL has an error code number and a message. Is there a list of these somewhere?

ANSWER: No, there is no list, but you can create your own. Something like this should work:

   IDL> FOR j=0,2000 DO Print, j, STRMESSAGE(j), FORMAT='(I5, 4x, A60)'

Note that the actual error codes are negatives of the values printed here.

[Return to IDL Programming Tips]