Since version 1.50.0, gjs defines GObject.NotImplementedError for throwing errors when a virtual method that requires a subclass implementation is not defined. So use this instead of a generic JS Error in such cases. https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/84