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__ (self, command, status, out, err)
 
def __str__ (self)
 

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

Member Function Documentation

def python.ifdherror.IFDHError.__str__ (   self)

Definition at line 46 of file ifdherror.py.

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

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: