~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Jonathan Lange
  • Date: 2007-04-20 02:21:57 UTC
  • mto: This revision was merged to the branch mainline in revision 2446.
  • Revision ID: jml@canonical.com-20070420022157-ampptjzryc2fju7t
Tests for MalformedBugIdentifier and new error UnknownBugTrackerAbbreviation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2055
2055
    def __init__(self, bug_id, reason):
2056
2056
        self.bug_id = bug_id
2057
2057
        self.reason = reason
 
2058
 
 
2059
 
 
2060
class UnknownBugTrackerAbbreviation(BzrError):
 
2061
 
 
2062
    _fmt = "Cannot find registered bug tracker for %(abbreviation)s"
 
2063
 
 
2064
    def __init__(self, abbreviation):
 
2065
        self.abbreviation = abbreviation