~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Setting NO_SMART_VFS in environment will disable VFS methods in the smart server. (Robert Collins, John Arbash Meinel, Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
156
156
        self.message = message
157
157
 
158
158
 
 
159
class DisabledMethod(BzrNewError):
 
160
    """The smart server method %(class_name)s is disabled."""
 
161
 
 
162
    is_user_error = False
 
163
 
 
164
    def __init__(self, class_name):
 
165
        BzrNewError.__init__(self)
 
166
        self.class_name = class_name
 
167
 
 
168
 
159
169
class InvalidEntryName(BzrNewError):
160
170
    """Invalid entry name: %(name)s"""
161
171