Ejemplo n.º 1
0
 def __init__(self, message, batch, job_id, status_code, uri, location=None, **kwargs):
     GraphError.__init__(self, message, **kwargs)
     self.batch = batch
     self.job_id = job_id
     self.status_code = status_code
     self.uri = uri
     self.location = location
Ejemplo n.º 2
0
 def __init__(self,
              message,
              batch,
              job_id,
              status_code,
              uri,
              location=None,
              **kwargs):
     GraphError.__init__(self, message, **kwargs)
     self.batch = batch
     self.job_id = job_id
     self.status_code = status_code
     self.uri = uri
     self.location = location
Ejemplo n.º 3
0
 def __init__(self, message, **kwargs):
     GraphError.__init__(self, message, **kwargs)
     if self.request:
         request_body = json.loads(self.request.body)
         self.statement = request_body.get("query")
         self.parameters = request_body.get("params")