All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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__
 
def __str__
 

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 
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.jobsuberror.JobsubError.__str__ (   self)

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