RepMessage Function

Action

Writes a message to the following files:

  • .ERR file (if severity is SEVERITY_ERROR, SEVERITY_TRANS_EXIT, or SEVERITY_PROCESS_EXIT)

  • .LOG file

  • .RPT file

The message will be counted as an error if SEVERITY_ERROR is the selected severity.

Include file

Kernel.bdh

Syntax

RepMessage( in sMessage  : string,
            in nSeverity : number optional := SEVERITY_ERROR );
Parameter Description
sMessage Message that will be written to the file.
nSeverity Optional: Severity of the error that is raised if the verification fails. Can be one of the following values:
  • SEVERITY_SUCCESS: Success; no error (numerical value: 0)
  • SEVERITY_INFORMATIONAL: Informational; no error (numerical value: 1)
  • SEVERITY_WARNING: Warning; no error (numerical value: 2)
  • SEVERITY_ERROR: (Default) Error; simulation continues (numerical value: 3)
  • SEVERITY_TRANS_EXIT: Error; the active transaction is aborted (numerical value: 4)
  • SEVERITY_PROCESS_EXIT: Error; the simulation is aborted (numerical value: 5)

Example

transaction TMain
  begin
    ...
    RepMessage("Data successfully transferred", SEVERITY_SUCCESS);
  end TMain;