
from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, PythonQtError

if PYQT5:
    raise PythonQtError('QtWebEngineQuick not implemented in PyQt5')
elif PYQT6:
    try:
        from PyQt6.QtWebEngineQuick import *
    except ImportError as error:
        raise PythonQtError(
            'The QtWebEngineQuick module was not found. '
            'It needs to be installed separately for PyQt6.'
            ) from error
elif PYSIDE2:
    raise PythonQtError('QtWebEngineQuick not implemented in PySide2')
elif PYSIDE6:
    from PySide6.QtWebEngineQuick import *
else:
    raise PythonQtError('No Qt bindings could be found')


from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, PythonQtError

if PYQT5:
    raise PythonQtError('QtWebEngineQuick not implemented in PyQt5')
elif PYQT6:
    try:
        from PyQt6.QtWebEngineQuick import *
    except ModuleNotFoundError as error:
        raise QtModuleNotInstalledError(
            name='QtWebEngineQuick', binding=API_NAME, missing_package='PyQt6-WebEngine'
        ) from error
elif PYSIDE2:
    raise PythonQtError('QtWebEngineQuick not implemented in PySide2')
elif PYSIDE6:
    from PySide6.QtWebEngineQuick import *
else:
    raise PythonQtError('No Qt bindings could be found')

Replace generic PythonQtError with QtModuleNotInstalledError
Replace generic PythonQtError with QtModuleNotInstalledError

  
  from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, PythonQtError
  
  if PYQT5:
      raise PythonQtError('QtWebEngineQuick not implemented in PyQt5')
  elif PYQT6:
      try:
          from PyQt6.QtWebEngineQuick import *
-     except ImportError as error:
+     except ModuleNotFoundError as error:
+         raise QtModuleNotInstalledError(
+             name='QtWebEngineQuick', binding=API_NAME, missing_package='PyQt6-WebEngine'
-         raise PythonQtError(
-             'The QtWebEngineQuick module was not found. '
-             'It needs to be installed separately for PyQt6.'
-             ) from error
+         ) from error
  elif PYSIDE2:
      raise PythonQtError('QtWebEngineQuick not implemented in PySide2')
  elif PYSIDE6:
      from PySide6.QtWebEngineQuick import *
  else:
      raise PythonQtError('No Qt bindings could be found')
  
Replace generic PythonQtError with QtModuleNotInstalledError
## Code Before:

from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, PythonQtError

if PYQT5:
    raise PythonQtError('QtWebEngineQuick not implemented in PyQt5')
elif PYQT6:
    try:
        from PyQt6.QtWebEngineQuick import *
    except ImportError as error:
        raise PythonQtError(
            'The QtWebEngineQuick module was not found. '
            'It needs to be installed separately for PyQt6.'
            ) from error
elif PYSIDE2:
    raise PythonQtError('QtWebEngineQuick not implemented in PySide2')
elif PYSIDE6:
    from PySide6.QtWebEngineQuick import *
else:
    raise PythonQtError('No Qt bindings could be found')

## Instruction:
Replace generic PythonQtError with QtModuleNotInstalledError
## Code After:

from . import PYQT5, PYQT6, PYSIDE2, PYSIDE6, PythonQtError

if PYQT5:
    raise PythonQtError('QtWebEngineQuick not implemented in PyQt5')
elif PYQT6:
    try:
        from PyQt6.QtWebEngineQuick import *
    except ModuleNotFoundError as error:
        raise QtModuleNotInstalledError(
            name='QtWebEngineQuick', binding=API_NAME, missing_package='PyQt6-WebEngine'
        ) from error
elif PYSIDE2:
    raise PythonQtError('QtWebEngineQuick not implemented in PySide2')
elif PYSIDE6:
    from PySide6.QtWebEngineQuick import *
else:
    raise PythonQtError('No Qt bindings could be found')
