XmlSelector class

From m204wiki
Revision as of 15:13, 15 July 2014 by JAL (talk | contribs) (Created page with "__NOTOC__ The <var>XmlSelector</var> exception class describes an exception associated with To produce a <var>XmlSelector</var> exception for yourself, you typically use a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The XmlSelector exception class describes an exception associated with

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

throw %(XmlSelector):new

In addition to the New constructor that creates an object instance, the class includes a Name property that returns the invalid statistic name.

The XmlSelector class is available as of Sirius Mods version 8.1.


The XmlSelector methods

Template:List of XmlSelector methods

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

New constructor

Template:XmlSelector:New subtitle

This Constructor generates an instance of an XmlSelector exception.

Syntax

Template:XmlSelector:New syntax

Syntax terms

%xmlSelector An XmlSelector object variable.
[%(XmlSelector):] The class name in parentheses denotes a Constructor. See Usage notes, below, for more information about invoking an XmlSelector 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:

    %xmlSelect = new %xmlSelect = %(XmlSelector):new %xmlSelect= %xmlSelect:new