/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 bzrlib/errors.py

add view-related errors and tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
2833
2833
    def __init__(self, msg):
2834
2834
        self.msg = msg
2835
2835
 
 
2836
 
 
2837
class NoSuchView(BzrError):
 
2838
    """A view does not exist.
 
2839
    """
 
2840
    
 
2841
    _fmt = u"No such view: %(view_name)s."
 
2842
 
 
2843
    def __init__(self, view_name):
 
2844
        self.view_name = view_name
 
2845
 
 
2846
 
 
2847
class ViewsNotSupported(BzrError):
 
2848
    """Views are not supported by a tree format.
 
2849
    """
 
2850
    
 
2851
    _fmt = ("Views are not supported by %(tree)s;"
 
2852
            " use 'bzr upgrade' to change your tree to a later format.")
 
2853
 
 
2854
    def __init__(self, tree):
 
2855
        self.tree = tree