Raises an error if the given View has been set read only and the user attempted to edit its content.

        :param view: View.
        :type view: QWidget

def __raise_user_error(self, view):
        """
        Raises an error if the given View has been set read only and the user attempted to edit its content.

        :param view: View.
        :type view: QWidget
        """

        raise foundations.exceptions.UserError("{0} | Cannot perform action, '{1}' View has been set read only!".format(
            self.__class__.__name__, view.objectName() or view))