Pascal Scripting: RaiseLastException

Prototype

procedure RaiseLastException;

Description

Reraises the current exception from an except section. Does nothing if there is no current exception.

Example:
begin
  try
    RaiseException('Your message goes here');
  except
    Log('An exception occurred: ' + GetExceptionMessage);
    RaiseLastException;
  end;

  // The following line will not be executed because of the exception being reraised
  MsgBox('You will not see this.', mbInformation, MB_OK);
end;

See also

RaiseException