errormessage | A string expression containing the message to display. |
The #ERROR statement immediately halts processing on the workunit and displays the errormessage. This statement may be used outside an XML scope and does not require a previous LOADXML to instantiate an XML scope.
Example:
a := TRUE; // pick one of these
//a := FALSE;
#IF(a)
#ERROR('broken');
OUTPUT('broken');
#ELSE
#WARNING('maybe broken');
OUTPUT('maybe broken');
#END;
See Also: #WARNING