HPlogo System Debug Reference Manual > Chapter 10 System Debug Standard Functions

func errmsg

MPE documents

Complete PDF
Table of Contents
Index

E0201 Edition 4 ♥
E0300 Edition 3
E0692 Edition 3

Returns an error message string, based on error number and an optional subsystem number.

Syntax



   errmsg (errnum [subsys])

Formal Declaration



   errmsg:str (errnum:s16 [subsys:u16=$a9])

Parameters


errnum

The error number, typically negative for errors, positive for warnings.

subsys

The subsystem number. By default, the Debug subsystem number ($a9) is used.

Examples



   $nmdebug > wl errmsg (-#1055)
   Expected a string for a pattern name  (error #1105)

Display the System Debug error message string for error number 1105.

   $nmdebug > wl errmsg (-#52, #10)
   NONEXISTENT PERMANENT FILE  (FSERR #52)

Display the error message string for error number -#52, for subsys #10.

   $nmdat > wl errmsg(-#37,#36)
   External error   -  subsys: #36  info: #37

If the error message is not found in the system message catalog, this form of message is returned.

Limitations, Restrictions


none




func eaddr


func grp