LastCommandErrorCount (Daemon property): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Template:Daemon:LastCommandErrorCount subtitle}} | |||
LastCommandErrorCount is a member of the [[Daemon class]] | LastCommandErrorCount is a member of the [[Daemon class]] | ||
Line 5: | Line 5: | ||
This method 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. | This method 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== | ||
{{Template:Daemon:LastCommandErrorCount syntax}} | |||
===Syntax terms=== | |||
===Syntax | |||
<dl> | <dl> | ||
Line 26: | Line 23: | ||
</pre> | </pre> | ||
==See also== | |||
{{Template:Daemon:LastCommandErrorCount footer}} |
Revision as of 04:53, 7 February 2011
Number of errors since the last Run invocation (Daemon class)
LastCommandErrorCount is a member of the Daemon class
This method 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
- %num
- A numeric variable to contain the value of the number of counting errors.
- %daem
- A previously defined and instantiated Daemon object.
Daemon objects set ERCNT to 0 after each request, so you might use lastCommandErrorCount as follows:
%daem:run('I FOOBAR') assert not %daem:lastCommandErrorCount