~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

Show diffs side-by-side

added added

removed removed

Lines of Context:
3149
3149
    def __init__(self, bzrdir):
3150
3150
        self.bzrdir = bzrdir
3151
3151
 
 
3152
 
3152
3153
class NoWhoami(BzrError):
3153
3154
 
3154
3155
    _fmt = ('Unable to determine your name.\n'
3155
3156
        "Please, set your name with the 'whoami' command.\n"
3156
3157
        'E.g. bzr whoami "Your Name <name@example.com>"')
3157
3158
 
 
3159
 
3158
3160
class InvalidPattern(BzrError):
3159
3161
 
3160
3162
    _fmt = ('Invalid pattern(s) found. %(msg)s')
3162
3164
    def __init__(self, msg):
3163
3165
        self.msg = msg
3164
3166
 
 
3167
 
 
3168
class RecursiveBind(BzrError):
 
3169
 
 
3170
    _fmt = ('Branch "%(branch_url)s" appears to be bound to itself. '
 
3171
        'Please use `bzr unbind` to fix.')
 
3172
 
 
3173
    def __init__(self, branch_url):
 
3174
        self.branch_url = branch_url
 
3175