LastCommandErrorCount (Daemon property)

From m204wiki
Revision as of 01:23, 14 March 2011 by Goff (talk | contribs) (match syntax table to syntax template, tags and edits)
Jump to navigation Jump to search

Number of errors since the last Run invocation (Daemon class)

LastCommandErrorCount returns the number of counting errors for the daemon (the Sirius ERCNT parameter value) from the last Run method. The method returns 0 if Run has yet to be invoked for that Daemon object.

Syntax

%number = daemon:LastCommandErrorCount

Syntax terms

%number A numeric variable to contain the value of the number of counting errors.
daemon A previously defined and instantiated Daemon object.

Examples

  1. Daemon objects set ERCNT to 0 after each request, so you might use lastCommandErrorCount as follows:

    %daem:run('I FOOBAR') assert not %daem:lastCommandErrorCount

See also