How To: Use The Error Event And Method

You can use error events and methods on a view or form. This allows you to specify custom rule actions and conditions to be followed, while using error system values such as error message, detail and type. When an error occurs, it attempts to find something to resolve the error, if nothing is found to resolve it with, the default error handling is used. The Stop rule execution and Continue to next execution rule actions can also be used to determine whether execution of the next handler should continue or not. In the Rules Designer, you can also raise your own custom errors via the error method provided. In mappings you can specify the values for the error context that is used.

You can use the Error event and method with the following events and actions:

Type Description
Event When the Form raises an event
Event When a View raises an event
Action Execute a View method
Action Execute a Form method

The error context available consist of the following:


Potential errors that may occur at runtime and can be handled differently include: