~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: John Arbash Meinel
  • Date: 2006-07-13 18:43:34 UTC
  • mto: This revision was merged to the branch mainline in revision 1869.
  • Revision ID: john@arbash-meinel.com-20060713184334-a8a8c873459b4200
Update http errors to properly use BzrNewError

Show diffs side-by-side

added added

removed removed

Lines of Context:
760
760
class InvalidHttpResponse(TransportError):
761
761
    """Invalid http response for %(path)s: %(msg)s"""
762
762
 
763
 
    def __init__(self, path, msg):
764
 
        # TODO: This is ready for a transition to BzrNewError
 
763
    def __init__(self, path, msg, orig_error=None):
765
764
        self.path = path
766
 
        self.msg = msg
767
 
        msg = self.__doc__ % self.__dict__
768
 
        TransportError.__init__(self, msg)
 
765
        TransportError.__init__(self, msg, orig_error=orig_error)
769
766
 
770
767
 
771
768
class InvalidHttpRange(InvalidHttpResponse):