Back to index

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

List of all members.

Public Member Functions

def __init__
def __str__

Public Attributes


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

Constructor & Destructor Documentation

def subprocess.CalledProcessError.__init__ (   self,
  output = None 

Definition at line 357 of file

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

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

Member Data Documentation

Definition at line 359 of file

Definition at line 360 of file

Definition at line 358 of file

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