Class ApplicationError
source code
object --+
|
exceptions.BaseException --+
|
exceptions.Exception --+
|
subprocess.CalledProcessError --+
|
ApplicationError
Raised when an application returns a non-zero exit status.
The exit status will be stored in the returncode attribute, similarly
the command line string used in the cmd attribute, and (if captured)
stdout and stderr as strings.
This exception is a subclass of subprocess.CalledProcessError (unless
run on Python 2.4 where that does not exist).
>>> err = ApplicationError(-11, "helloworld", "", "Some error text")
>>> err.returncode, err.cmd, err.stdout, err.stderr
(-11, 'helloworld', '', 'Some error text')
>>> print err
Command 'helloworld' returned non-zero exit status -11, 'Some error text'
|
__init__(self,
returncode,
cmd,
stdout='
' ,
stderr='
' )
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
|
|
Inherited from exceptions.Exception :
__new__
Inherited from exceptions.BaseException :
__delattr__ ,
__getattribute__ ,
__getitem__ ,
__getslice__ ,
__reduce__ ,
__setattr__ ,
__setstate__ ,
__unicode__
Inherited from object :
__format__ ,
__hash__ ,
__reduce_ex__ ,
__sizeof__ ,
__subclasshook__
|
Inherited from exceptions.BaseException :
args ,
message
Inherited from object :
__class__
|
__init__(self,
returncode,
cmd,
stdout='
' ,
stderr='
' )
(Constructor)
| source code
|
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
- Overrides:
object.__init__
- (inherited documentation)
|
__str__(self)
(Informal representation operator)
| source code
|
str(x)
- Overrides:
object.__str__
- (inherited documentation)
|
repr(x)
- Overrides:
object.__repr__
- (inherited documentation)
|