~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Andrew Bennetts
  • Date: 2008-05-13 11:32:15 UTC
  • mto: This revision was merged to the branch mainline in revision 3428.
  • Revision ID: andrew.bennetts@canonical.com-20080513113215-gtr2ul998vg6taif
Distinguish between errors in decoding a message into message parts from errors in handling decoded message parts, and use that to make sure that entire requests are read even when they result in exceptions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1492
1492
        self.verb = verb
1493
1493
 
1494
1494
 
 
1495
class SmartMessageHandlerError(InternalBzrError):
 
1496
 
 
1497
    _fmt = "The message handler raised an exception: %(exc_value)s."
 
1498
 
 
1499
    def __init__(self, exc_info):
 
1500
        self.exc_type, self.exc_value, self.tb = exc_info
 
1501
        
 
1502
 
1495
1503
# A set of semi-meaningful errors which can be thrown
1496
1504
class TransportNotPossible(TransportError):
1497
1505