[Twisted-Python] If the errbacks of a canceled Deferred are called with error other than CancelledError, is this acceptable?
itamar at itamarst.org
Tue Jun 18 18:36:29 MDT 2013
On 06/18/2013 05:24 PM, Glyph wrote:
> Hrm. I would say that if you don't document exceptions, then you just
> have to support whatever your behavior was before :).
> http://twistedmatrix.com/trac/wiki/CompatibilityPolicy does not
> explore this issue, though.
The many possible options in this case include
ConnectionDone/ConnectionLost/SSL errors and then a few other random
errors (LineTooLong, ServerGreetingError). Etc. In general for these
situations it seems like the range of errors is wide enough you always
need a catch-all error handler anyway.
More information about the Twisted-Python