cloudFPGA (cF) API  1.0
The documentation of the source code of cloudFPGA (cF)
cFSPlib.python_api_client.swagger_client.rest.ApiException Class Reference
Inheritance diagram for cFSPlib.python_api_client.swagger_client.rest.ApiException:
[legend]
Collaboration diagram for cFSPlib.python_api_client.swagger_client.rest.ApiException:
[legend]

Public Member Functions

def __init__ (self, status=None, reason=None, http_resp=None)
 
def __str__ (self)
 

Public Attributes

 status
 
 reason
 
 body
 
 headers
 

Detailed Description

Definition at line 292 of file rest.py.

Constructor & Destructor Documentation

◆ __init__()

def cFSPlib.python_api_client.swagger_client.rest.ApiException.__init__ (   self,
  status = None,
  reason = None,
  http_resp = None 
)

Definition at line 294 of file rest.py.

294  def __init__(self, status=None, reason=None, http_resp=None):
295  if http_resp:
296  self.status = http_resp.status
297  self.reason = http_resp.reason
298  self.body = http_resp.data
299  self.headers = http_resp.getheaders()
300  else:
301  self.status = status
302  self.reason = reason
303  self.body = None
304  self.headers = None
305 

Member Function Documentation

◆ __str__()

def cFSPlib.python_api_client.swagger_client.rest.ApiException.__str__ (   self)
Custom error messages for exception

Definition at line 306 of file rest.py.

306  def __str__(self):
307  """Custom error messages for exception"""
308  error_message = "({0})\n"\
309  "Reason: {1}\n".format(self.status, self.reason)
310  if self.headers:
311  error_message += "HTTP response headers: {0}\n".format(
312  self.headers)
313 
314  if self.body:
315  error_message += "HTTP response body: {0}\n".format(self.body)
316 
317  return error_message

Member Data Documentation

◆ body

cFSPlib.python_api_client.swagger_client.rest.ApiException.body

Definition at line 298 of file rest.py.

◆ headers

cFSPlib.python_api_client.swagger_client.rest.ApiException.headers

Definition at line 299 of file rest.py.

◆ reason

cFSPlib.python_api_client.swagger_client.rest.ApiException.reason

Definition at line 297 of file rest.py.

◆ status

cFSPlib.python_api_client.swagger_client.rest.ApiException.status

Definition at line 296 of file rest.py.


The documentation for this class was generated from the following file: