Public Member Functions | Public Attributes | List of all members
python.jobsuberror.JobsubError Class Reference
Inheritance diagram for python.jobsuberror.JobsubError:

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 jobsuberror.py.

Constructor & Destructor Documentation

def python.jobsuberror.JobsubError.__init__ (   self,
  command,
  status,
  out,
  err 
)

Definition at line 29 of file jobsuberror.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 
def __init__(self, command, status, out, err)
Definition: jobsuberror.py:29
static QCString str

Member Function Documentation

def python.jobsuberror.JobsubError.__str__ (   self)

Definition at line 46 of file jobsuberror.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.jobsuberror.JobsubError.command

Definition at line 35 of file jobsuberror.py.

python.jobsuberror.JobsubError.err

Definition at line 43 of file jobsuberror.py.

python.jobsuberror.JobsubError.out

Definition at line 42 of file jobsuberror.py.

python.jobsuberror.JobsubError.status

Definition at line 41 of file jobsuberror.py.


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