LastCommandErrorCount (Daemon property): Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (match syntax table to syntax template, tags and edits) |
||
Line 1: | Line 1: | ||
{{Template:Daemon:LastCommandErrorCount subtitle}} | {{Template:Daemon:LastCommandErrorCount subtitle}} | ||
<var>LastCommandErrorCount</var> returns the number of counting errors for the daemon (the Sirius <var>[[ERCNT_parameter|ERCNT]]</var> parameter value) from the last <var>[[Run (Daemon function)|Run]]</var> method. The method returns 0 if <var>[[Run (Daemon function)|Run]]</var> has yet to be invoked for that Daemon object. | |||
LastCommandErrorCount | |||
==Syntax== | ==Syntax== | ||
Line 9: | Line 6: | ||
===Syntax terms=== | ===Syntax terms=== | ||
<table class="syntaxTable"> | <table class="syntaxTable"> | ||
<tr><th>% | <tr><th>%number</th> | ||
<td>A numeric variable to contain the value of the number of counting errors. </td></tr> | <td>A numeric variable to contain the value of the number of counting errors. </td></tr> | ||
<tr><th> | <tr><th>daemon</th> | ||
<td>A previously defined and instantiated Daemon object.</td></tr> | <td>A previously defined and instantiated <var>[[Daemon class|Daemon]]</var> object.</td></tr> | ||
</table> | </table> | ||
Daemon objects set ERCNT to 0 after each request, so you might use lastCommandErrorCount as follows: | ==Examples== | ||
<ol><li>Daemon objects set <var>[[ERCNT_parameter|ERCNT]]</var> to 0 after each request, so you might use <var>lastCommandErrorCount</var> as follows: | |||
<p class="code"><nowiki>%daem:run('I FOOBAR') | <p class="code"><nowiki>%daem:run('I FOOBAR') | ||
assert not %daem:lastCommandErrorCount | assert not %daem:lastCommandErrorCount | ||
</nowiki></p> | </nowiki></p></ol> | ||
==See also== | ==See also== | ||
{{Template:Daemon:LastCommandErrorCount footer}} | {{Template:Daemon:LastCommandErrorCount footer}} |
Revision as of 01:23, 14 March 2011
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
- Daemon objects set ERCNT to 0 after each request, so you might use lastCommandErrorCount as follows:
%daem:run('I FOOBAR') assert not %daem:lastCommandErrorCount