Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
HTTPError Class Reference
Inheritance diagram for HTTPError:
URLError

Public Member Functions

def __init__
 
def __str__
 
def __del__
 
- Public Member Functions inherited from URLError
def __init__
 
def __str__
 

Data Fields

 code
 
 msg
 
 hdrs
 
 fp
 
 filename
 
- Data Fields inherited from URLError
 reason
 

Detailed Description

Raised when HTTP error occurs, but also acts like non-error return

Definition at line 157 of file urllib2.py.

Constructor & Destructor Documentation

def __init__ (   self,
  url,
  code,
  msg,
  hdrs,
  fp 
)

Definition at line 161 of file urllib2.py.

References HTTPError.__super_init.

162  def __init__(self, url, code, msg, hdrs, fp):
163  self.__super_init(fp, hdrs, url)
164  self.code = code
165  self.msg = msg
166  self.hdrs = hdrs
167  self.fp = fp
168  # XXX
169  self.filename = url
def __del__ (   self)

Definition at line 173 of file urllib2.py.

References _Mailbox.fp, _Subfile.fp, MultiFile.fp, Message.fp, HTTPResponse.fp, HTTPError.fp, FieldStorage.fp, and addbase.fp.

174  def __del__(self):
175  # XXX is this safe? what if user catches exception, then
176  # extracts fp and discards exception?
177  if self.fp:
178  self.fp.close()

Member Function Documentation

def __str__ (   self)

Definition at line 170 of file urllib2.py.

References HTTPError.code, RegexObject.code, NetrcParseError.msg, GetoptError.msg, HTTPResponse.msg, and HTTPError.msg.

171  def __str__(self):
172  return 'HTTP Error %s: %s' % (self.code, self.msg)

Field Documentation

code

Definition at line 163 of file urllib2.py.

filename

Definition at line 168 of file urllib2.py.

fp

Definition at line 166 of file urllib2.py.

hdrs

Definition at line 165 of file urllib2.py.

msg

Definition at line 164 of file urllib2.py.


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