As ScriptWriter, define my own error message controller


The scriptwriter is able to define his own ErrorMessageController.

An error message controller is a class that interfaces from the IErrorMessageController. The class can be set on the Factory.Instance in the Api2 assembly.

When an error is thrown in an API method, the custom defined error message controller is executed.

Using a library class with static constructor, the ScriptWriter can force an ErrorMessageController for all scripting used in the application.