MaxDaemExceeded class: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
<!-- MaxDaemExceeded class -->
<!-- MaxDaemExceeded class -->
__NOTOC__
__NOTOC__
The <var>MaxDaemExceeded</var> exception class indicates that the <var>[[Daemon_class|Daemon class]]</var> <var>[[New_(Daemon_constructor)|New]]</var> constructor was invoked, but the calling thread is at its limit of daemon threads.
The <var>MaxDaemExceeded</var> exception class indicates that the <var>[[Daemon_class|Daemon]]</var> class <var>[[New (Daemon constructor)|New]]</var> constructor was invoked, but the calling thread is at its limit of daemon threads.
   
   
The maximum number of daemons allowed per master thread is set by the <var>[[MAXDAEM_parameter|MAXDAEM]]</var> system parameter, whose default value is 1.
The maximum number of daemons allowed per master thread is set by the <var>[[MAXDAEM_parameter|MAXDAEM]]</var> system parameter, whose default value is 1.
   
   
To produce a <var>MaxDaemExceeded</var> exception for yourself, you typically use a <var class="product">User Language</var> [[Throw]] statement calling the an <var>MaxDaemExceeded</var> <var>[[New_(MaxDaemExceeded_constructor)|New]]</var> constructor:
To produce a <var>MaxDaemExceeded</var> exception for yourself, you typically use a <var class="product">User Language</var> [[Throw]] statement calling the an <var>MaxDaemExceeded</var> <var>[[New_(MaxDaemExceeded_constructor)|New]]</var> constructor:
<p class="code"> [[throw]] %(maxDaemExceeded):new
<p class="code"> throw %(maxDaemExceeded):new
</p>
</p>
   
   
Line 12: Line 12:
    
    
This class is available as of <var class="product">[[Sirius Mods]]</var> Version 7.5.
This class is available as of <var class="product">[[Sirius Mods]]</var> Version 7.5.


<h2>The MaxDaemExceeded methods</h2>
<h2>The MaxDaemExceeded methods</h2>
Line 23: Line 24:
</ul>
</ul>


<h2>New constructor</h2>
{{Template:MaxDaemExceeded:New subtitle}}
This callable constructor generates an instance of an <var>[[MaxDaemExceeded_class|MaxDaemExceeded]]</var> exception.  The <var>New</var> method format is as follows:
<h4>Syntax</h4>
{{Template:MaxDaemExceeded:New syntax}}
<h4>Syntax terms</h4>
<table class="syntaxTable">
<tr><th>%maxDaemExceeded</th>
<td>A reference to an instance of a <var>MaxDaemExceeded</var> object.</td></tr>
<tr><th><var>%(MaxDaemExceeded)</var></th><td>The class name in parentheses denotes a shared method.</td></tr>
</table>




[[Category:System exception classes]]
[[Category:System exception classes]]

Revision as of 16:56, 10 May 2011


The MaxDaemExceeded exception class indicates that the Daemon class New constructor was invoked, but the calling thread is at its limit of daemon threads.

The maximum number of daemons allowed per master thread is set by the MAXDAEM system parameter, whose default value is 1.

To produce a MaxDaemExceeded exception for yourself, you typically use a User Language Throw statement calling the an MaxDaemExceeded New constructor:

throw %(maxDaemExceeded):new

The only method of the MaxDaemExceeded exception class is the New constructor. The class has no properties.

This class is available as of Sirius Mods Version 7.5.


The MaxDaemExceeded methods

The following are the available MaxDaemExceeded class methods.

MethodDescription
NewCreate a new MaxDaemExceeded object

The methods in the class are described in the subsections that follow. In addition:


New constructor

Create a new MaxDaemExceeded object (MaxDaemExceeded class)

This callable constructor generates an instance of an MaxDaemExceeded exception. The New method format is as follows:

Syntax

%maxDaemExceeded = [%(MaxDaemExceeded):]New

Syntax terms

%maxDaemExceeded A reference to an instance of a MaxDaemExceeded object.
%(MaxDaemExceeded)The class name in parentheses denotes a shared method.