IncorrectDaemonState class: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Created page with " <!-- IncorrectDaemonState class --> __NOTOC__ The <var>IncorrectDaemonState</var> exception class indicates that the state of the daemon thread was not correct for a method. ...")
 
mNo edit summary
Line 1: Line 1:


<!-- IncorrectDaemonState class -->
<!-- IncorrectDaemonState class -->
Line 9: Line 8:
</p>
</p>
   
   
The only method of the <var>MaxDaemExceeded</var> exception class is the <var>New</var> constructor.  The class has no properties.
The only method of the <var>IncorrectDaemonState</var> exception class is the <var>New</var> constructor.  The class has no properties.
    
    
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 IncorrectDaemonState methods</h2>
{{Template:List of MaxDaemExceeded methods}}
{{Template:List of IncorrectDaemonState methods}}


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:
Line 21: Line 20:
<li>[[Notation conventions for methods|"Notation conventions for methods"]] has information
<li>[[Notation conventions for methods|"Notation conventions for methods"]] has information
about the conventions followed.  
about the conventions followed.  
<li>[[MaxDaemExceeded methods syntax|"MaxDaemExceeded methods syntax"]] is a single page that contains the syntax diagrams of all the methods in the class.
<li>[[IncorrectDaemonState methods syntax|"IncorrectDaemonState methods syntax"]] is a single page that contains the syntax diagrams of all the methods in the class.
</ul>
</ul>


<h2>New constructor</h2>
<h2>New constructor</h2>
{{Template:MaxDaemExceeded:New subtitle}}
{{Template:IncorrectDaemonState:New subtitle}}


This method generates an instance of an <var>[[MaxDaemExceeded_class|MaxDaemExceeded]]</var> exception.  The<var>New</var> method format is as follows:
This method generates an instance of an <var>[[IncorrectDaemonState_class|IncorrectDaemonState]]</var> exception.  The<var>New</var> method format is as follows:


<h3>Syntax</h3>
<h3>Syntax</h3>
{{Template:MaxDaemExceeded:New syntax}}
{{Template:IncorrectDaemonState:New syntax}}
<h4>Syntax terms</h4>
<h4>Syntax terms</h4>
<table class="syntaxTable">
<table class="syntaxTable">
<tr><th>%maxDaemExceeded</th>
<tr><th>%incorrectDaemonState</th>
<td>A reference to an instance of a <var>MaxDaemExceeded</var> object.</td></tr>
<td>A reference to an instance of a <var>IncorrectDaemonState</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>%(IncorrectDaemonState)</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>IncorrectDaemonState</var> <var>Constructor</var>.</td></tr>
</table>
</table>


Line 43: Line 41:
<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
%incorrectDaemonState = %(IncorrectDaemonState):new


%maxdaem = %maxdaem:new
%incorrectDaemonState = %incorrectDaemonState:new
</p>
</p>
</ul>
</ul>


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

Revision as of 03:16, 13 May 2012


The IncorrectDaemonState exception class indicates that the state of the daemon thread was not correct for a method.

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

throw %(maxDaemExceeded):new

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

This class is available as of Sirius Mods Version 7.5.


The IncorrectDaemonState methods

The following are the available IncorrectDaemonState class methods.

MethodDescription
NewCreate a new IncorrectDaemonState object
StateState of daemon at time of exception

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

New constructor

Create a new IncorrectDaemonState object (IncorrectDaemonState class)

[Introduced in Sirius Mods 8.1]

This method generates an instance of an IncorrectDaemonState exception. TheNew method format is as follows:

Syntax

%incorrectDaemonState = [%(IncorrectDaemonState):]New[( [State= daemonState])]

Syntax terms

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