2966
2966
def __init__(self, format, url):
2967
2967
BzrError.__init__(self, format=format, url=url)
2970
class NoSuchView(BzrError):
2971
"""A view does not exist.
2974
_fmt = u"No such view: %(view_name)s."
2976
def __init__(self, view_name):
2977
self.view_name = view_name
2980
class ViewsNotSupported(BzrError):
2981
"""Views are not supported by a tree format.
2984
_fmt = ("Views are not supported by %(tree)s;"
2985
" use 'bzr upgrade' to change your tree to a later format.")
2987
def __init__(self, tree):
2991
class FileOutsideView(BzrError):
2993
_fmt = ('Specified file "%(file_name)s" is outside the current view: '
2996
def __init__(self, file_name, view_files):
2997
self.file_name = file_name
2998
self.view_str = ", ".join(view_files)
3001
class UnresumableWriteGroup(BzrError):
3003
_fmt = ("Repository %(repository)s cannot resume write group "
3004
"%(write_groups)r: %(reason)s")
3006
internal_error = True
3008
def __init__(self, repository, write_groups, reason):
3009
self.repository = repository
3010
self.write_groups = write_groups
3011
self.reason = reason
3014
class UnsuspendableWriteGroup(BzrError):
3016
_fmt = ("Repository %(repository)s cannot suspend a write group.")
3018
internal_error = True
3020
def __init__(self, repository):
3021
self.repository = repository