UnknownStatistic class: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
mNo edit summary |
||
Line 1: | Line 1: | ||
<!-- UnknownStatistic class --> | <!-- UnknownStatistic class --> | ||
The UnknownStatistic exception class describes an exception associated with | The <var>UnknownStatistic</var> exception class describes an exception associated with | ||
finding a string identifier that is not a valid or not an appropriate | finding a string identifier that is not a valid or not an appropriate | ||
<var class="product">Model 204</var> statistic name. | <var class="product">Model 204</var> statistic name. | ||
To produce an UnknownStatistic exception, you typically use a User Language | To produce an <var>UnknownStatistic</var> exception, you typically use a User Language | ||
Throw statement with | <var>Throw</var> statement with the <var>[[New (UnknownStatistic constructor)|New]]</var> | ||
For example, the following statement throws an UnknownStatistic exception | <var>UnknownStatistic</var> constructor. | ||
for the value ABCD: | For example, the following statement throws an <var>UnknownStatistic</var> exception | ||
for the value <code>ABCD</code>: | |||
<p class="code"> throw %(unknownStatistic):new(Name='abcd') | <p class="code"> throw %(unknownStatistic):new(Name='abcd') | ||
</p> | </p> | ||
In addition to the New constructor that creates an object instance, | In addition to the <var>New</var> constructor that creates an object instance, | ||
the class includes a Name property that returns the invalid statistic name. | the class includes a <var>Name</var> property that returns the invalid statistic name. | ||
The methods in this class are listed at "[[List of UnknownStatistic methods]]". | The methods in this class are listed at "[[List of UnknownStatistic methods]]". | ||
[[Category:System exception classes]] | [[Category:System exception classes]] | ||
The UnknownStatistic class is available as of <var class="product">Sirius Mods</var> version 7.3. | The <var>UnknownStatistic</var> class is available as of <var class="product">Sirius Mods</var> version 7.3. |
Revision as of 14:43, 30 March 2011
The UnknownStatistic exception class describes an exception associated with finding a string identifier that is not a valid or not an appropriate Model 204 statistic name.
To produce an UnknownStatistic exception, you typically use a User Language
Throw statement with the New
UnknownStatistic constructor.
For example, the following statement throws an UnknownStatistic exception
for the value ABCD
:
throw %(unknownStatistic):new(Name='abcd')
In addition to the New constructor that creates an object instance, the class includes a Name property that returns the invalid statistic name.
The methods in this class are listed at "List of UnknownStatistic methods".
The UnknownStatistic class is available as of Sirius Mods version 7.3.