FormFieldNotFound class

From m204wiki
Revision as of 17:16, 2 May 2016 by JAL (talk | contribs) (Created page with "__NOTOC__ The <var>FormFieldNotFound</var> exception class describes an exception associated with not finding an expected field within [http://www.w3.org/TR/html401/interact/f...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The FormFieldNotFound exception class describes an exception associated with not finding an expected field within HTML form data, say a missing "type=file" field.

To produce a FormFieldNotFound exception yourself, you typically use a SOUL Throw statement with a FormFieldNotFound New constructor. This statement must be issued from within a method, and it can only be caught by the code that calls the method. For example, the following statement throws a FormFieldNotFound exception:

throw %(FormFieldNotFound):new

For an outline of how you might use an exception in a function of your own, see this Get method example.

The FormFieldNotFound methods

The following are the available FormFieldNotFound class methods.

MethodDescription
NewCreate a new FormFieldNotFound object

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

New constructor

Create a new FormFieldNotFound object (FormFieldNotFound class)

[Introduced in Sirius Mods 8.1]

This Constructor generates an instance of a FormFieldNotFound exception. As shown below, the New method takes no arguments.

Syntax

%formFieldNotFound = [%(FormFieldNotFound):]New

Syntax terms

%formFieldNotFound A reference to an instance of a FormFieldNotFound object.
[%(FormFieldNotFound):]The class name in parentheses denotes a Constructor.