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:
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.
|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.
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
|A reference to an instance of a FormFieldNotFound object.
|The class name in parentheses denotes a Constructor.