Use the following guidelines concerning error trapping and warnings:
Include error trapping (catch and throw) logic in the appropriate places.
Anticipate and handle all error conditions.
Add the #WARN command to the code. This command instructs the compiler to print warnings about numerous potential errors in the code. While this feature will normally be the directory default in development environments, the code should be released without it so that client customization to such a program will benefit from it as well.
Do not release code that contains any warning messages during compilation.
Ensure that computed column functions handle error conditions by returning a null or a documented default value. Computed data item functions cannot throw errors or return error flags.