FormFieldNotFound class
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.
Method | Description |
---|---|
New | Create a new FormFieldNotFound object |
The methods in the class are described in the subsections that follow. In addition:
- Notation conventions for methods has information about the conventions followed.
- FormFieldNotFound methods syntax is a single page that contains the syntax diagrams of all the methods in the class.
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. |