FormFieldNotFound class

From m204wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.

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.


%formFieldNotFound = [%(FormFieldNotFound):]New

Syntax terms

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