attribute := expression : ONWARNING(code, action) ;
attribute | The name of the Attribute. |
expression | The definition of the attribute. |
code | The number displayed in the "Code" column of the ECL IDE's Syntax Errors toolbox. |
action | One of these actions: ignore, error, or warning. |
The ONWARNING service allows you to specify how to handle specific warnings for a given attribute. You may have it treated as a warning, promote it to an error, or ignore it. Useful warnings can get lost in a sea of less-useful ones. This feature allows you to get rid of the "clutter."
This service overrides any global warning handling specified by #ONWARNING.
Example:
rec := { STRING x } : ONWARNING(1041, ignore);
//ignore "Record doesn't have an explicit maximum record size" warning
See Also: #ONWARNING