Warning Index Domain Violation
Type: Selection
Range: The settings listed below
Default: Common_warning_default
This option determines what happens during execution when an identifier is referenced outside its index domain, depending on the following settings:
|
Do not issue a warning. |
|
Issue a warning and post it to the global error and warning collector. |
|
Take action depending on the option ‘Common warning default’. |
|
Issue a warning and post it to the nearest error handler. |
|
Take action depending on the option ‘Strict warning default’. |
|
Issue an error. |
|
In a developer system same as Error, in a deployment system same as Warning_handle |
|
In a developer system same as Error, in a deployment system same as Off |
|
In a developer system same as Warning_handle, in a deployment system same as Off |
An example of such a situation arises when executing the following model:
SET:
identifier : Cities
index : c
definition : data{Paris,London} ;
PARAMETER:
identifier : Population
index domain : Cities;
PROCEDURE
identifier : MainExecution
body :
Population('Amsterdam'):=700000;
ENDPROCEDURE ;
When executing procedure ‘MainExecution’, there is an index domain violation, because ‘Amsterdam’ is not an element of the set ‘Cities’.
Note
If you set this option to “Off” or “Warning”, data will be assigned to elements that are outside the domain.
When an element is not in the index domain of an identifier due to domain restrictions in the
index domain
attribute of that identifier, the statement will give no warning or error.With the option Maximal Number of Warnings Reported you can set the maximal number of warnings that are shown in errors/warnings and message window.
Learn more about