~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/errors.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-05-01 22:03:39 UTC
  • mfrom: (4287.1.11 1.15-lru-gc)
  • Revision ID: pqm@pqm.ubuntu.com-20090501220339-msx1b0ouap06xsp9
(jam) Change the _LRUNode implementation to avoid cyclic refs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1227
1227
            not_ancestor_id=not_ancestor_id)
1228
1228
 
1229
1229
 
1230
 
class InstallFailed(BzrError):
1231
 
 
1232
 
    def __init__(self, revisions):
1233
 
        revision_str = ", ".join(str(r) for r in revisions)
1234
 
        msg = "Could not install revisions:\n%s" % revision_str
1235
 
        BzrError.__init__(self, msg)
1236
 
        self.revisions = revisions
1237
 
 
1238
 
 
1239
1230
class AmbiguousBase(BzrError):
1240
1231
 
1241
1232
    def __init__(self, bases):
2960
2951
        BzrError.__init__(self, invalid_id=invalid_id)
2961
2952
 
2962
2953
 
 
2954
class JailBreak(BzrError):
 
2955
 
 
2956
    _fmt = "An attempt to access a url outside the server jail was made: '%(url)s'."
 
2957
 
 
2958
    def __init__(self, url):
 
2959
        BzrError.__init__(self, url=url)
 
2960
 
 
2961
 
2963
2962
class UserAbort(BzrError):
2964
2963
 
2965
2964
    _fmt = 'The user aborted the operation.'