MaxDaemExceeded class: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
m (link repair)
 
Line 5: Line 5:
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> <var>[[Exceptions#Throwing exceptions|Throw]]</var> 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">SOUL</var> <var>[[Exceptions#Throwing exceptions|Throw]]</var> 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 19: Line 19:
The methods in the class are described in the subsections that follow. In addition:
The methods in the class are described in the subsections that follow. In addition:
<ul>
<ul>
<li>[[Notation conventions for methods|"Notation conventions for methods"]] has information
<li>[[Notation conventions for methods]] has information about the conventions followed. </li>
about the conventions followed.  
<li>[[MaxDaemExceeded methods syntax]] is a single page that contains the syntax diagrams of all the methods in the class. </li>
<li>[[MaxDaemExceeded methods syntax|"MaxDaemExceeded methods syntax"]] is a single page that contains the syntax diagrams of all the methods in the class.
</ul>
</ul>


Line 39: Line 38:
<td>A reference to an instance of a <var>MaxDaemExceeded</var> object.</td></tr>
<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 <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See [[#Usage notes|"Usage notes"]], below, for more information about invoking a <var>MaxDaemExceeded</var> <var>Constructor</var>.</td></tr>
<tr><th><var>[%(MaxDaemExceeded):]</var></th><td>The class name in parentheses denotes a <var>[[Notation conventions for methods#Constructors|Constructor]]</var>. See [[#Usage notes|Usage notes]], below, for more information about invoking a <var>MaxDaemExceeded</var> <var>Constructor</var>.</td></tr>
</table>
</table>


===Usage notes===
===Usage notes===
<ul>
<ul>
<li>As described in [[Object variables#Using New or other Constructors|"Using New or other Constructors"]], <var>New</var> can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is <var>Null</var>:<p class="code">%maxdaem = new
<li>As described in [[Object variables#Using New or other Constructors|Using New or other Constructors]], <var>New</var> can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is <var>Null</var>:<p class="code">%maxdaem = new


%maxdaem = %(MaxDaemExceeded):new
%maxdaem = %(MaxDaemExceeded):new

Latest revision as of 21:33, 18 November 2014


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 SOUL 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 method 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 Constructor. See Usage notes, below, for more information about invoking a MaxDaemExceeded Constructor.

Usage notes

  • As described in Using New or other Constructors, New can be invoked with no object, with an explicit class name, or with an object variable in the class, even if that object is Null:

    %maxdaem = new %maxdaem = %(MaxDaemExceeded):new %maxdaem = %maxdaem:new