class documentation

class twisted.internet.defer.FirstError(Exception): (source)

View In Hierarchy

First error to occur in a DeferredList if fireOnOneErrback is set.

Instance Variable subFailure The Failure that occurred.
Instance Variable index The index of the Deferred in the DeferredList where it happened.
Method __init__ Undocumented
Method __repr__ The repr of FirstError instances includes the repr of the wrapped failure's exception and the index of the FirstError.
Method __str__ The str of FirstError instances includes the str of the entire wrapped failure (including its traceback and exception) and the index of the FirstError.
Method __cmp__ No summary
subFailure = (source)
The Failure that occurred.
(type: Failure)
index = (source)
The index of the Deferred in the DeferredList where it happened.
(type: int)
def __init__(self, failure, index): (source)

Undocumented

def __repr__(self): (source)

The repr of FirstError instances includes the repr of the wrapped failure's exception and the index of the FirstError.

ReturnsUndocumented (type: str)
def __str__(self): (source)

The str of FirstError instances includes the str of the entire wrapped failure (including its traceback and exception) and the index of the FirstError.

ReturnsUndocumented (type: str)
def __cmp__(self, other): (source)

Comparison between FirstError and other FirstError instances is defined as the comparison of the index and sub-failure of each instance. FirstError instances don't compare equal to anything that isn't a FirstError instance.

Present Since8.2
API Documentation for Twisted, generated by pydoctor 20.12.1 at 2021-02-28 19:53:36.