HPlogo System Debug Reference Manual > Chapter 4 System Debug Command Specifications

ERR

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Pushes a user error message onto the error command stack.

Syntax



   ERR errmsg

The ERR command is typically used within user defined macros.

Parameters


errmsg

The error message that is to be pushed onto the error stack. This message must be entered as a string expression (that is, a quoted string literal, a string function or macro result).

Examples



   $nmdat > err "Illegal negative parameter value"

Push a custom user error message onto the error stack.

Limitations, Restrictions


The error stack is implemented as a ring, with a total of 10 elements.

Note that the ERROR environment variable is not set by this command.




ENVL[IST]


ERRD[EL]