Skip to main content

#ERROR

#ERROR( errormessage );

errormessageA 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:

  #IF(TRUE)
    #ERROR('broken');
    OUTPUT('broken');
  #ELSE
    #WARNING('maybe broken');
    OUTPUT('maybe broken');
  #END;

See Also: #WARNING