Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
subprocess.CalledProcessError Class Reference
Inheritance diagram for subprocess.CalledProcessError:
Inheritance graph
[legend]
Collaboration diagram for subprocess.CalledProcessError:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes

 returncode
 cmd
 output

Detailed Description

This exception is raised when a process run by check_call() or
check_output() returns a non-zero exit status.
The exit status will be stored in the returncode attribute;
check_output() will also store the output in the output attribute.

Definition at line 351 of file subprocess.py.


Constructor & Destructor Documentation

def subprocess.CalledProcessError.__init__ (   self,
  returncode,
  cmd,
  output = None 
)

Definition at line 357 of file subprocess.py.

00357 
00358     def __init__(self, returncode, cmd, output=None):
00359         self.returncode = returncode
00360         self.cmd = cmd
        self.output = output

Here is the caller graph for this function:


Member Function Documentation

Definition at line 361 of file subprocess.py.

00361 
00362     def __str__(self):
00363         return "Command '%s' returned non-zero exit status %d" % (self.cmd, self.returncode)
00364 


Member Data Documentation

Definition at line 359 of file subprocess.py.

Definition at line 360 of file subprocess.py.

Definition at line 358 of file subprocess.py.


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