Get failed job error details

        Args:
            id (str): The id of the job.

        See: https://auth0.com/docs/api/management/v2#!/Jobs/get_errors
970737
def get_failed_job(self, id):
        
        url = self._url('{}/errors'.format(id))
        return self.client.get(url)
1109852
protected function getDirOrFail($id)
    {

        if(!is_numeric($id)){
            throw new BadRequestHttpException('DirId is no numeric');
        }

        if($dir = $this->fileDB->getById($id)) {
            return $dir;
        }
        throw new NotFoundHttpException("Dir with id $id not found");
    }
1020368
def status(self, id):
        
        id = self.__unpack_id(id)
        url = '/api/v1/statuses/{0}'.format(str(id))
        return self.__api_request('GET', url)
280450
def usable_id(cls, id):
        
        try:
            qry_id = int(id)
        except Exception:
            qry_id = None

        if not qry_id:
            msg = 'unknown identifier %s' % id
            cls.error(msg)

        return qry_id
897526
def apps_job_status_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/apps/job_statuses/{id}.json"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
1255803
def get_error(self, i=None, unit=None,
                  uncover=None, trail=None,
                  linebreak=None, sort_by_indep=None):
        
        return self.get_value(i=i, unit=unit,
                              uncover=uncover, trail=trail,
                              linebreak=linebreak, sort_by_indep=sort_by_indep,
                              attr='_error')
33997
def target_failure_show(self, id, **kwargs):
        ""
        api_path = "/api/v2/target_failures/{id}"
        api_path = api_path.format(id=id)
        return self.call(api_path, **kwargs)
406694
def get_results(self, job_id):
        
        url = self._url('%s/results' % job_id)
        return self.client.get(url)
412497
def get_incident(self, id, **kwargs):
        "
        resp = self._get_object_by_name(self._INCIDENT_ENDPOINT_SUFFIX, id,
                                        **kwargs)
        return resp
1170953
def _method_error_handler(self, response: Dict[str, Any]):
        
        exp = response.get('MESSAGE')
        code = response.get("CODE")
        ID = exp.get("ID")
        raise abort(code, ID=ID, message=exp.get('MESSAGE'))
795782
def _get_field_error_dict(self, field):
        ''''''
        return {
            'name': field.html_name,
            'id': 'id_{}'.format(field.html_name), # This may be a problem
            'errors': field.errors,
        }
862884
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)
528642
def error_info():
    """"""
    worker = global_worker
    worker.check_connected()
    return (global_state.error_messages(driver_id=worker.task_driver_id) +
            global_state.error_messages(driver_id=DriverID.nil()))
860217
def id(self, id):
        

        if id is None:
            raise ValueError("Invalid value for `id`, must not be `None`")
        if len(id) > 255:
            raise ValueError("Invalid value for `id`, length must be less than `255`")

        self._id = id
503989
def _error_to_string(self, error_id):
        
        strerror = self.lib.iperf_strerror
        strerror.restype = c_char_p
        return strerror(error_id).decode('utf-8')
855818
def get_job_details(job_id,
                    deployment_name,
                    token_manager=None,
                    app_url=defaults.APP_URL):
    

    jobs = get_jobs(deployment_name,
                    token_manager=token_manager,
                    app_url=app_url)

    for job in jobs:
        if job['id'] == job_id:
            return job

    raise JutException('Unable to find job with id "%s"' % job_id)
1305937
def get(self, id):
        
        try:
            if self.request.headers.get("Id"):
                object_ = yield self.client.find_one({self.request.headers.get("Id"): id})
            else:
                object_ = yield self.client.find_one_by_id(id)

            if object_:
                self.write(object_)
                return

            self.raise_error(404, "%s/%s not found" % (self.object_name, id))

        except InvalidId as ex:
            self.raise_error(400, message="Your ID is malformed: %s" % id)
        except Exception as ex:
            self.logger.error(ex)
            self.raise_error()