<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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))