Home | Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]

Error Handling


IDL contains a system variable that is updated when errors occur. This system variable is described below.

!ERROR_STATE

This system variable is a structure. Whenever an error occurs, IDL sets the fields in this system variable according to the nature of the field. An IDL error is always comprised of an IDL-generated component, and may also contain an operating system-generated component.

The fields for the !ERROR_STATE system variable are described below:

Using !ERROR_STATE

At the beginning of an IDL session, !ERROR_STATE contains default information. To see this information, you can either view !ERROR_STATE from the System field of the Variable Watch Window (see The Variable Watch Window) or you can enter PRINT, !ERROR_STATE at the Command Input Line. After an error has occurred, all of the fields of !ERROR_STATE display their updated status.

You can use MESSAGE, /RESET_ERROR STATE to reset all the fields in !ERROR_STATE to their default values.


Home | Categories | Alphabetical | Classes | All Contents | [ < ] | [ > ]