NoFreeDaemons class: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
The <var>NoFreeDaemons</var> exception class indicates that the <var>[[Daemon_class|Daemon]]</var> class <var>[[New_(Daemon_constructor)|New]]</var> constructor was invoked, but there were no daemon threads available to service the object.
The <var>NoFreeDaemons</var> exception class indicates that the <var>[[Daemon_class|Daemon]]</var> class <var>[[New_(Daemon_constructor)|New]]</var> constructor was invoked, but there were no daemon threads available to service the object.
   
   
To produce a <var>NoFreeDaemons</var> exception for yourself, you typically use a <var class="product">User Language</var> <var>[[Exceptions#Throwing exceptions|Throw]]</var> statement with a <var>NoFreeDaemons</var> <var>[[New_(NoFreeDaemons_constructor)|New]]</var> constructor.  For example, the following statement throws a <var>NoFreeDaemons</var> exception:
To produce a <var>NoFreeDaemons</var> exception for yourself, you typically use a <var class="product">SOUL</var> <var>[[Exceptions#Throwing exceptions|Throw]]</var> statement with a <var>NoFreeDaemons</var> <var>[[New_(NoFreeDaemons_constructor)|New]]</var> constructor.  For example, the following statement throws a <var>NoFreeDaemons</var> exception:
<p class="code">throw %(noFreeDaemons):new
<p class="code">throw %(noFreeDaemons):new
</p>
</p>
Line 13: Line 13:
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>[[NoFreeDaemons methods syntax]] is a single page that contains the syntax diagrams of all the methods in the class. </li>
<li>[[NoFreeDaemons methods syntax|"NoFreeDaemons methods syntax"]] is a single page that contains the syntax diagrams of all the methods in the class.
</ul>
</ul>


Line 22: Line 21:
{{Template:NoFreeDaemons:New subtitle}}
{{Template:NoFreeDaemons:New subtitle}}


This <var>Constructor</var> generates an instance of an <var>[[NoFreeDaemons_class|NoFreeDaemons]]</var> exception. The <var>New</var> method format is as follows:
This <var>Constructor</var> generates an instance of a <var>NoFreeDaemons</var> exception. The <var>New</var> method format is as follows:


===Syntax===
===Syntax===
Line 34: Line 33:
</td></tr>
</td></tr>


<tr><th><var>[%(NoFreeDaemons):]</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>NoFreeDaemons</var> <var>Constructor</var>.</td></tr>
<tr><th><var>[%(NoFreeDaemons):]</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>NoFreeDaemons</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>:
<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">%nfdaem = new
<p class="code">%nfdaem = new


Line 47: Line 46:
</p>
</p>
</ul>
</ul>
[[Category:System exception classes]]
[[Category:System exception classes]]

Latest revision as of 21:37, 18 November 2014


The NoFreeDaemons exception class indicates that the Daemon class New constructor was invoked, but there were no daemon threads available to service the object.

To produce a NoFreeDaemons exception for yourself, you typically use a SOUL Throw statement with a NoFreeDaemons New constructor. For example, the following statement throws a NoFreeDaemons exception:

throw %(noFreeDaemons):new


The NoFreeDaemons methods

The following are the available NoFreeDaemons class methods.

MethodDescription
NewCreate a new NoFreeDaemons object

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


New constructor

Create a new NoFreeDaemons object (NoFreeDaemons class)

This Constructor generates an instance of a NoFreeDaemons exception. The New method format is as follows:

Syntax

%noFreeDaemons = [%(NoFreeDaemons):]New

Syntax terms

%noFreeDaemons A reference to an instance of a NoFreeDaemons object.
[%(NoFreeDaemons):]The class name in parentheses denotes a Constructor. See Usage notes, below, for more information about invoking a NoFreeDaemons 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:

    %nfdaem = new %nfdaem = %(NoFreeDaemons):new %nfdaem = %nfdaem:new