/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 breezy/errors.py

Move bugtracker errors to breezy.bugtracker.

Merged from https://code.launchpad.net/~jelmer/brz/move-errors-bugtracker/+merge/327167

Show diffs side-by-side

added added

removed removed

Lines of Context:
2485
2485
        self.tag_name = tag_name
2486
2486
 
2487
2487
 
2488
 
class MalformedBugIdentifier(BzrError):
2489
 
 
2490
 
    _fmt = ('Did not understand bug identifier %(bug_id)s: %(reason)s. '
2491
 
            'See "brz help bugs" for more information on this feature.')
2492
 
 
2493
 
    def __init__(self, bug_id, reason):
2494
 
        self.bug_id = bug_id
2495
 
        self.reason = reason
2496
 
 
2497
 
 
2498
 
class InvalidBugTrackerURL(BzrError):
2499
 
 
2500
 
    _fmt = ("The URL for bug tracker \"%(abbreviation)s\" doesn't "
2501
 
            "contain {id}: %(url)s")
2502
 
 
2503
 
    def __init__(self, abbreviation, url):
2504
 
        self.abbreviation = abbreviation
2505
 
        self.url = url
2506
 
 
2507
 
 
2508
 
class UnknownBugTrackerAbbreviation(BzrError):
2509
 
 
2510
 
    _fmt = ("Cannot find registered bug tracker called %(abbreviation)s "
2511
 
            "on %(branch)s")
2512
 
 
2513
 
    def __init__(self, abbreviation, branch):
2514
 
        self.abbreviation = abbreviation
2515
 
        self.branch = branch
2516
 
 
2517
 
 
2518
 
class InvalidLineInBugsProperty(BzrError):
2519
 
 
2520
 
    _fmt = ("Invalid line in bugs property: '%(line)s'")
2521
 
 
2522
 
    def __init__(self, line):
2523
 
        self.line = line
2524
 
 
2525
 
 
2526
 
class InvalidBugStatus(BzrError):
2527
 
 
2528
 
    _fmt = ("Invalid bug status: '%(status)s'")
2529
 
 
2530
 
    def __init__(self, status):
2531
 
        self.status = status
2532
 
 
2533
 
 
2534
2488
class UnexpectedSmartServerResponse(BzrError):
2535
2489
 
2536
2490
    _fmt = "Could not understand response from smart server: %(response_tuple)r"