ECODE Variable

M言語プログラミングブック [WALTERS1997] から引用

Page 350

$ECODE is a variable used to store all “active” erros, that is, errors that have not yet been dealt with. Errors are stored in a string, always between commas. For this reason, whenever there are active errors $ECODE$ will always start and end with a comma. If there are no active errors, $ECODE will be the empty string.

An error code starts with a letter and is followed by a number. “M” indicates an error assigned by the MUMPS Development Committee (MDC). “U” means an error set by the programmer and “Z” indicates an error assigned by the MUMPS implementors. Errors are always appended to $ECODE, with the use of the SET command:

SET $ECODE=",M10," ; an error defined by M standards
SET $ECODE=",U17," ; user defined error
SET $ECODE="" ; clears all errors

Previous topic


Next topic

ETRAP Variable

This Page

inserted by FC2 system