All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
python.ifdherror.IFDHError Class Reference
Inheritance diagram for python.ifdherror.IFDHError:

Public Member Functions

def __init__
 
def __str__
 

Public Attributes

 command
 
 status
 
 out
 
 err
 

Detailed Description

Definition at line 27 of file ifdherror.py.

Constructor & Destructor Documentation

def python.ifdherror.IFDHError.__init__ (   self,
  command,
  status,
  out,
  err 
)

Definition at line 29 of file ifdherror.py.

29 
30  def __init__(self, command, status, out, err):
31 
32  # Store command as a single string.
33  # For compatibility with subprocess module, the command may be passed
34  # as a list of words.
35 
36  self.command = ''
37  if type(command) == type([]):
38  for word in command:
39  self.command = self.command + ' ' + str(word)
40  else:
41  self.command = str(command)
42  self.status = int(status)
43  self.out = str(out)
44  self.err = str(err)
45  return

Member Function Documentation

def python.ifdherror.IFDHError.__str__ (   self)

Definition at line 46 of file ifdherror.py.

46 
47  def __str__(self):
48  s = '\nCommand: %s\nStatus: %d\nOutput: %s\nError: %s\n' % (
49  self.command, self.status, self.out, self.err)
50  return s
51 
52 

Member Data Documentation

python.ifdherror.IFDHError.command

Definition at line 35 of file ifdherror.py.

python.ifdherror.IFDHError.err

Definition at line 43 of file ifdherror.py.

python.ifdherror.IFDHError.out

Definition at line 42 of file ifdherror.py.

python.ifdherror.IFDHError.status

Definition at line 41 of file ifdherror.py.


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