CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
uploadConditions.HTTPError Class Reference
Inheritance diagram for uploadConditions.HTTPError:
Exception

Public Member Functions

def __init__ (self, code, response)
 

Public Attributes

 args
 
 code
 
 response
 

Detailed Description

A common HTTP exception.

self.code is the response HTTP code as an integer.
self.response is the response body (i.e. page).

Definition at line 200 of file uploadConditions.py.

Constructor & Destructor Documentation

◆ __init__()

def uploadConditions.HTTPError.__init__ (   self,
  code,
  response 
)

Definition at line 207 of file uploadConditions.py.

207  def __init__(self, code, response):
208  self.code = code
209  self.response = response
210 
211  # Try to extract the error message if possible (i.e. known error page format)
212  try:
213  self.args = (response.split('<p>')[1].split('</p>')[0], )
214  except Exception:
215  self.args = (self.response, )
216 
217 
def __init__(self, dataset, job_number, job_id, job_name, isDA, isMC, applyBOWS, applyEXTRACOND, extraconditions, runboundary, lumilist, intlumi, maxevents, gt, allFromGT, alignmentDB, alignmentTAG, apeDB, apeTAG, bowDB, bowTAG, vertextype, tracktype, refittertype, ttrhtype, applyruncontrol, ptcut, CMSSW_dir, the_dir)

Member Data Documentation

◆ args

uploadConditions.HTTPError.args

Definition at line 213 of file uploadConditions.py.

Referenced by esMonitoring.ElasticReport.make_report().

◆ code

uploadConditions.HTTPError.code

Definition at line 208 of file uploadConditions.py.

◆ response

uploadConditions.HTTPError.response

Definition at line 209 of file uploadConditions.py.