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.

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()