code: def job_failed(self, device, action, message):
          
          if not self._mounter.is_handleable(device):
              return
          device_file = device.device_presentation or device.object_path
          if message:
              text = _('failed to {0} {1}:\n{2}', action, device_file, message)
          else:
              text = _('failed to {0} device {1}.', action, device_file)
          try:
              retry = getattr(self._mounter, action)
          except AttributeError:
              retry_action = None
          else:
              retry_action = ('retry', _('Retry'), retry, device)
          self._show_notification(
              'job_failed',
              _('Job failed'), text,
              device.icon_name,
              retry_action)
docs: Show 'Job failed' notification with 'Retry' button.