Error: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
m (1 revision)
m (1 revision)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
= error =
     
Usage: print ''text'' [level=minimal|normal|full|debug]
Usage: print ''text'' [level=minimal|normal|full|debug]
       error ''text''
       error ''text''

Latest revision as of 19:12, 28 January 2009

error

Usage: print text [level=minimal|normal|full|debug]

      error text

The statements "print" and "error" write the message text to the output. "error" also invokes the error handler (as set with the variable "erract") and is thus useful to print error messages from within a macro. In the "print" statement the "level" option can be used to determine whether the message is written or not, depending on the value of the system variable "info".

See also