SetCancelOnErrorInBeginTransaction Function

Action

Specifies whether the runtime should be halted in case of an error in the begin transaction.

If you enable this option, the runtime will be halted in case of an error. Otherwise it will continue running the script.

Include file

Kernel.bdh

Syntax

SetCancelOnErrorInBeginTransaction( in bCancel : boolean );
Parameter Description
bCancel If this parameter is set to true, the runtime will be halted in case of an error in the begin transaction. Otherwise, the runtime will continue running the script.

Example

dcltrans
  transaction TInit
  begin
    SetCancelOnErrorInBeginTransaction(true);
    RepMessage("Custom Error", SEVERITY_ERROR);
  end TInit;