def METHOD_NAME(self):
    self._failed = True
    self.get_view().setText(1, "Failed")
    self.status = QUEUE_ENTRY_STATUS.FAILED
    logging.getLogger("user_level_log").error("XRF spectrum failed.")
    raise QueueExecutionException("XRF spectrum failed", self)