2485
2485
self.tag_name = tag_name
2488
class MalformedBugIdentifier(BzrError):
2490
_fmt = ('Did not understand bug identifier %(bug_id)s: %(reason)s. '
2491
'See "brz help bugs" for more information on this feature.')
2493
def __init__(self, bug_id, reason):
2494
self.bug_id = bug_id
2495
self.reason = reason
2498
class InvalidBugTrackerURL(BzrError):
2500
_fmt = ("The URL for bug tracker \"%(abbreviation)s\" doesn't "
2501
"contain {id}: %(url)s")
2503
def __init__(self, abbreviation, url):
2504
self.abbreviation = abbreviation
2508
class UnknownBugTrackerAbbreviation(BzrError):
2510
_fmt = ("Cannot find registered bug tracker called %(abbreviation)s "
2513
def __init__(self, abbreviation, branch):
2514
self.abbreviation = abbreviation
2515
self.branch = branch
2518
class InvalidLineInBugsProperty(BzrError):
2520
_fmt = ("Invalid line in bugs property: '%(line)s'")
2522
def __init__(self, line):
2526
class InvalidBugStatus(BzrError):
2528
_fmt = ("Invalid bug status: '%(status)s'")
2530
def __init__(self, status):
2531
self.status = status
2534
2488
class UnexpectedSmartServerResponse(BzrError):
2536
2490
_fmt = "Could not understand response from smart server: %(response_tuple)r"