~dustin-spy/twisted/dustin

Viewing all changes in revision 14343.

  • Committer: exarkun
  • Date: 2006-12-06 03:15:37 UTC
  • Revision ID: vcs-imports@canonical.com-20061206031537-2461e8347e08d8a4
Merge resolver-error-reporting-2248

Author: exarkun
Reviewer: radix
Fixes #2248

Change the resolver client API to translate DNS response codes other than OK
into Failures passed to a Deferred errback.  Add several new exception classes
to represent the different response codes which are possible and a new module
for twisted.names exception classes.

This is a not a backwards compatible change.  Instead of being passed a three
tuple of empty lists on error, callers of lookup methods will now have their
Deferred errback instead.

Also update twisted.mail.relaymanager.MXCalculator to account for this change,
since it relied on checks against the empty list to discover the failure case.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: