Please enable JavaScript to view this site.

A-Shell Reference

Reviewed and revised April 2024

xcall MIAMEX, MX_SETERR, errnum {,chan}

MX_SETERR (MIAMEX 182) triggers an ASB error. It may be useful for testing/debugging error handling routines, as well as for using the error trapping mechanism as a way of passing coded signals (i.e. virtual error codes) from within an arbitrarily nested function/procedure up to the main error trap.

Parameters

errnum (Num)  [in]

the ASB error to trigger; sets err(0)

chan (Num)  [in]

channel number; sets err(2)

Comments

MX_BASERR is an alias for MX_SETERR, meaning that calls to MX_BASERR invoke MX_SETERR.

See Also