/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

  • Committer: Aaron Bentley
  • Date: 2008-04-12 06:46:35 UTC
  • mfrom: (3363 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3364.
  • Revision ID: aaron@aaronbentley.com-20080412064635-fs97gk4682bhefnf
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1476
1476
        self.details = details
1477
1477
 
1478
1478
 
 
1479
class UnknownSmartMethod(InternalBzrError):
 
1480
 
 
1481
    _fmt = "The server does not recognise the '%(verb)s' request."
 
1482
 
 
1483
    def __init__(self, verb):
 
1484
        self.verb = verb
 
1485
 
 
1486
 
1479
1487
# A set of semi-meaningful errors which can be thrown
1480
1488
class TransportNotPossible(TransportError):
1481
1489
 
2066
2074
        self.path = path
2067
2075
 
2068
2076
 
 
2077
class RepositoryUpgradeRequired(UpgradeRequired):
 
2078
 
 
2079
    _fmt = "To use this feature you must upgrade your repository at %(path)s."
 
2080
 
 
2081
 
2069
2082
class LocalRequiresBoundBranch(BzrError):
2070
2083
 
2071
2084
    _fmt = "Cannot perform local-only commits on unbound branches."
2626
2639
        self.timezone = timezone
2627
2640
 
2628
2641
 
 
2642
class CommandAvailableInPlugin(StandardError):
 
2643
    
 
2644
    internal_error = False
 
2645
 
 
2646
    def __init__(self, cmd_name, plugin_metadata, provider):
 
2647
        
 
2648
        self.plugin_metadata = plugin_metadata
 
2649
        self.cmd_name = cmd_name
 
2650
        self.provider = provider
 
2651
 
 
2652
    def __str__(self):
 
2653
 
 
2654
        _fmt = ('"%s" is not a standard bzr command. \n' 
 
2655
                'However, the following official plugin provides this command: %s\n'
 
2656
                'You can install it by going to: %s'
 
2657
                % (self.cmd_name, self.plugin_metadata['name'], 
 
2658
                    self.plugin_metadata['url']))
 
2659
 
 
2660
        return _fmt
 
2661
 
 
2662
 
 
2663
class NoPluginAvailable(BzrError):
 
2664
    pass    
 
2665
 
 
2666
 
2629
2667
class NotATerminal(BzrError):
2630
2668
 
2631
2669
    _fmt = 'Unable to ask for a password without real terminal.'