~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Martin Pool
  • Date: 2011-08-01 06:24:48 UTC
  • mfrom: (5609.48.7 2.3)
  • mto: (6015.9.4 2.4)
  • mto: This revision was merged to the branch mainline in revision 6047.
  • Revision ID: mbp@canonical.com-20110801062448-sjljdg390rwxg4ue
merge up fix for bug 198646 from bzr.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1737
1737
        InvalidHttpResponse.__init__(self, path, msg)
1738
1738
 
1739
1739
 
 
1740
class HttpBoundaryMissing(InvalidHttpResponse):
 
1741
    """A multipart response ends with no boundary marker.
 
1742
 
 
1743
    This is a special case caused by buggy proxies, described in
 
1744
    <https://bugs.launchpad.net/bzr/+bug/198646>.
 
1745
    """
 
1746
 
 
1747
    _fmt = "HTTP MIME Boundary missing for %(path)s: %(msg)s"
 
1748
 
 
1749
    def __init__(self, path, msg):
 
1750
        InvalidHttpResponse.__init__(self, path, msg)
 
1751
 
 
1752
 
1740
1753
class InvalidHttpContentType(InvalidHttpResponse):
1741
1754
 
1742
1755
    _fmt = 'Invalid http Content-type "%(ctype)s" for %(path)s: %(msg)s'