/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Merge disable-medusa-for-python-2.6 into pyftpdlib

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
               )
155
155
 
156
156
    def __eq__(self, other):
157
 
        if self.__class__ != other.__class__:
 
157
        if self.__class__ is not other.__class__:
158
158
            return NotImplemented
159
159
        return self.__dict__ == other.__dict__
160
160
 
1003
1003
 
1004
1004
class LockContention(LockError):
1005
1005
 
1006
 
    _fmt = 'Could not acquire lock "%(lock)s"'
 
1006
    _fmt = 'Could not acquire lock "%(lock)s": %(msg)s'
1007
1007
    # TODO: show full url for lock, combining the transport and relative
1008
1008
    # bits?
1009
1009
 
1010
1010
    internal_error = False
1011
1011
 
1012
 
    def __init__(self, lock):
 
1012
    def __init__(self, lock, msg=''):
1013
1013
        self.lock = lock
 
1014
        self.msg = msg
1014
1015
 
1015
1016
 
1016
1017
class LockBroken(LockError):
1634
1635
            self.port = ':%s' % port
1635
1636
 
1636
1637
 
 
1638
# XXX: This is also used for unexpected end of file, which is different at the
 
1639
# TCP level from "connection reset".
1637
1640
class ConnectionReset(TransportError):
1638
1641
 
1639
1642
    _fmt = "Connection closed: %(msg)s %(orig_error)s"
2501
2504
 
2502
2505
class MalformedBugIdentifier(BzrError):
2503
2506
 
2504
 
    _fmt = "Did not understand bug identifier %(bug_id)s: %(reason)s"
 
2507
    _fmt = ('Did not understand bug identifier %(bug_id)s: %(reason)s. '
 
2508
            'See "bzr help bugs" for more information on this feature.')
2505
2509
 
2506
2510
    def __init__(self, bug_id, reason):
2507
2511
        self.bug_id = bug_id
2528
2532
        self.branch = branch
2529
2533
 
2530
2534
 
 
2535
class InvalidLineInBugsProperty(BzrError):
 
2536
 
 
2537
    _fmt = ("Invalid line in bugs property: '%(line)s'")
 
2538
 
 
2539
    def __init__(self, line):
 
2540
        self.line = line
 
2541
 
 
2542
 
 
2543
class InvalidBugStatus(BzrError):
 
2544
 
 
2545
    _fmt = ("Invalid bug status: '%(status)s'")
 
2546
 
 
2547
    def __init__(self, status):
 
2548
        self.status = status
 
2549
 
 
2550
 
2531
2551
class UnexpectedSmartServerResponse(BzrError):
2532
2552
 
2533
2553
    _fmt = "Could not understand response from smart server: %(response_tuple)r"