INCLAN: error: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
(Created page with '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 …')
 
No edit summary
 
Line 1: Line 1:
Usage: print ''text'' [level=minimal|normal|full|debug]
== Synopsis ==
      error ''text''


The statements "print" and "error" write the message ''text'' to the
'''error''' ''text''
output. "error" also invokes the error handler (as set with the  
 
variable "erract") and is thus useful to print error messages from
== Description ==
within a macro.
 
In the "print" statement the "level" option can be used to determine
Writes the ''text'' to standard output or into the file with the given ''filename'' and calls the error handler. This statement is suitable to treat errors that occur during the execution of a macro. If the ''text'' contains blanks it must be enclosed in double quotes.  
whether the message is written or not, depending on the value of the
system variable "info".


== See also ==
== See also ==

Latest revision as of 15:04, 13 August 2009

Synopsis

error text

Description

Writes the text to standard output or into the file with the given filename and calls the error handler. This statement is suitable to treat errors that occur during the execution of a macro. If the text contains blanks it must be enclosed in double quotes.

See also