<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update_state_error(self, errors):
 """Update the state of the model run to 'FAILED'. Expects a list of error messages. Raises an exception if update fails or resource is unknown. Parameters errors : List(string) List of error messages Returns ------- ModelRunHandle Refreshed run handle. """

        # Update state to active
        self.update_state(
            self.links[REF_UPDATE_STATE_ERROR],
            {'type' : RUN_FAILED, 'errors' : errors}
        )
        # Returned refreshed verion of the handle
        return self.refresh()