exception documentation

class UnexpectedExit(Failure): (source)

View In Hierarchy

A shell command ran to completion but exited with an unexpected exit code. Its string representation displays the following: - Command executed; - Exit code; - The last 10 lines of stdout, if it was hidden; - The last 10 lines of stderr, if it was hidden and non-empty (e.g. pty=False; when pty=True, stderr never happens.) .. versionadded:: 1.0

Method __str__ Undocumented
Method _repr Return ``__repr__``-like value from inner result + any kwargs.

Inherited from Failure:

Method __init__ Undocumented
Method __repr__ Undocumented
Method streams_for_display Return stdout/err streams as necessary for error display.
Instance Variable reason Undocumented
Instance Variable result Undocumented
def __str__(self): (source)

Undocumented

def _repr(self, **kwargs): (source)

Return ``__repr__``-like value from inner result + any kwargs.