UnknownStatistic class

From m204wiki
Revision as of 20:14, 14 January 2011 by Dme (talk | contribs) (Created page with "<!-- UnknownStatistic class --> The UnknownStatistic exception class describes an exception associated with finding a string identifier that is not a valid or not an appropriate ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 an UnknownStatistic constructor (New). 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.