~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-04-23 07:50:15 UTC
  • mfrom: (2376.4.43 bug-support)
  • Revision ID: pqm@pqm.ubuntu.com-20070423075015-340ajk1vo3pzxheu
(robertc) bzr --fixes support to allow recording of bugs that are fixed by commits. (Jonathan Lange, James Henstridge, Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2087
2087
        self.tag_name = tag_name
2088
2088
 
2089
2089
 
 
2090
class MalformedBugIdentifier(BzrError):
 
2091
 
 
2092
    _fmt = "Did not understand bug identifier %(bug_id)s: %(reason)s"
 
2093
 
 
2094
    def __init__(self, bug_id, reason):
 
2095
        self.bug_id = bug_id
 
2096
        self.reason = reason
 
2097
 
 
2098
 
 
2099
class UnknownBugTrackerAbbreviation(BzrError):
 
2100
 
 
2101
    _fmt = ("Cannot find registered bug tracker called %(abbreviation)s "
 
2102
            "on %(branch)s")
 
2103
 
 
2104
    def __init__(self, abbreviation, branch):
 
2105
        self.abbreviation = abbreviation
 
2106
        self.branch = branch
 
2107
 
 
2108
 
2090
2109
class UnexpectedSmartServerResponse(BzrError):
2091
2110
 
2092
2111
    _fmt = "Could not understand response from smart server: %(response_tuple)r"
2093
2112
 
2094
2113
    def __init__(self, response_tuple):
2095
2114
        self.response_tuple = response_tuple
2096