/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

  • Committer: Jelmer Vernooij
  • Date: 2017-07-15 15:59:40 UTC
  • mfrom: (6731.1.5 move-errors-1)
  • Revision ID: jelmer@jelmer.uk-20170715155940-nulr118q3rg8wrli
Move some more errors out of breezy.errors.

https://code.launchpad.net/~jelmer/brz/move-errors-1/+merge/327485

Show diffs side-by-side

added added

removed removed

Lines of Context:
259
259
        BzrError.__init__(self, branch_url=public_location)
260
260
 
261
261
 
262
 
class NoHelpTopic(BzrError):
263
 
 
264
 
    _fmt = ("No help could be found for '%(topic)s'. "
265
 
        "Please use 'brz help topics' to obtain a list of topics.")
266
 
 
267
 
    def __init__(self, topic):
268
 
        self.topic = topic
269
 
 
270
 
 
271
262
class NoSuchId(BzrError):
272
263
 
273
264
    _fmt = 'The file id "%(file_id)s" is not present in the tree %(tree)s.'
351
342
        self.not_locked = not_locked
352
343
 
353
344
 
354
 
class BzrOptionError(BzrCommandError):
355
 
 
356
 
    _fmt = "Error in command line options"
357
 
 
358
 
 
359
345
class BadIndexFormatSignature(BzrError):
360
346
 
361
347
    _fmt = "%(value)s is not an index of type %(_type)s."
412
398
        self.value = value
413
399
 
414
400
 
415
 
class BadOptionValue(BzrError):
416
 
 
417
 
    _fmt = """Bad value "%(value)s" for option "%(name)s"."""
418
 
 
419
 
    def __init__(self, name, value):
420
 
        BzrError.__init__(self, name=name, value=value)
421
 
 
422
 
 
423
401
class StrictCommitFailed(BzrError):
424
402
 
425
403
    _fmt = "Commit refused because there are unknown files in the tree"
3037
3015
        self.target_branch = target_branch
3038
3016
 
3039
3017
 
3040
 
class FileTimestampUnavailable(BzrError):
3041
 
 
3042
 
    _fmt = "The filestamp for %(path)s is not available."
3043
 
 
3044
 
    internal_error = True
3045
 
 
3046
 
    def __init__(self, path):
3047
 
        self.path = path
3048
 
 
3049
 
 
3050
3018
class NoColocatedBranchSupport(BzrError):
3051
3019
 
3052
3020
    _fmt = ("%(controldir)r does not support co-located branches.")
3121
3089
        self.format = format
3122
3090
 
3123
3091
 
3124
 
class MissingFeature(BzrError):
3125
 
 
3126
 
    _fmt = ("Missing feature %(feature)s not provided by this "
3127
 
            "version of Bazaar or any plugin.")
3128
 
 
3129
 
    def __init__(self, feature):
3130
 
        self.feature = feature
3131
 
 
3132
 
 
3133
3092
class PatchSyntax(BzrError):
3134
3093
    """Base class for patch syntax errors."""
3135
3094