/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: Andrew Bennetts
  • Date: 2007-04-10 14:12:35 UTC
  • mto: This revision was merged to the branch mainline in revision 2404.
  • Revision ID: andrew.bennetts@canonical.com-20070410141235-wtmjydzktegq64cz
Use the Command pattern for handling smart server commands.

This improves readability and testability.

This change has been extracted from the hpss branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
        self.message = message
176
176
 
177
177
 
 
178
class DisabledMethod(BzrError):
 
179
 
 
180
    _fmt = "The smart server method '%(class_name)s' is disabled."
 
181
 
 
182
    internal_error = True
 
183
 
 
184
    def __init__(self, class_name):
 
185
        BzrError.__init__(self)
 
186
        self.class_name = class_name
 
187
 
 
188
 
178
189
class InvalidEntryName(BzrError):
179
190
    
180
191
    _fmt = "Invalid entry name: %(name)s"