/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to backend/errors.py

  • Committer: Szilveszter Farkas (Phanatic)
  • Date: 2006-06-11 19:06:06 UTC
  • mto: (0.14.1 main) (93.1.1 win32.bialix)
  • mto: This revision was merged to the branch mainline in revision 83.
  • Revision ID: Szilveszter.Farkas@gmail.com-20060611190606-313cd4690a10cd78
* backend/commit.py: commit() implemented
* backend/fileops.py: remove() implemented
* backend/errors.py: more exceptions added
* more detailed comments for the different functions

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    pass
22
22
 
23
23
class AlreadyBranchError(OliveError):
24
 
    """ The specified directory is already a branch """
 
24
    """ The specified directory is already a branch
 
25
    
 
26
    May occur in:
 
27
        init.init()
 
28
    """
 
29
 
 
30
class BoundBranchOutOfDate(OliveError):
 
31
    """ Occurs if the bound branch is out of date
 
32
    
 
33
    May occur in:
 
34
        commit.commit()
 
35
    """
25
36
 
26
37
class BranchExistsWithoutWorkingTree(OliveError):
27
 
    """ The specified directory is a branch, however it doesn't contain a working tree """
 
38
    """ The specified directory is a branch, however it doesn't contain a working tree
 
39
    
 
40
    May occur in:
 
41
        init.init()
 
42
    """
 
43
 
 
44
class ConflictsInTreeError(OliveError):
 
45
    """ Occurs if non-resolved conflicts remained in the tree
 
46
    
 
47
    May occur in:
 
48
        commit.commit()
 
49
    """
28
50
 
29
51
class DirectoryAlreadyExists(OliveError):
30
 
    """ The specified directory already exists """
 
52
    """ The specified directory already exists
 
53
    
 
54
    May occur in:
 
55
        fileops.mkdir()
 
56
    """
 
57
 
 
58
class EmptyMessageError(OliveError):
 
59
    """ Occurs if no commit message specified
 
60
    
 
61
    May occur in:
 
62
        commit.commit()
 
63
    """
 
64
 
 
65
class LocalRequiresBoundBranch(OliveError):
 
66
    """ Occurs when the local branch needs a bound branch
 
67
    
 
68
    May occur in:
 
69
        commit.commit()
 
70
    """
 
71
 
 
72
class NoChangesToCommitError(OliveError):
 
73
    """ Occurs if there are no changes to commit
 
74
    
 
75
    May occur in:
 
76
        commit.commit()
 
77
    """
 
78
 
 
79
class NoFilesSpecified(OliveError):
 
80
    """ No files were specified as an argument to a function
 
81
    
 
82
    May occur in:
 
83
        fileops.remove()
 
84
    """
 
85
 
 
86
class NoMatchingFiles(OliveError):
 
87
    """ No files found which could match the criteria
 
88
    
 
89
    May occur in:
 
90
        fileops.remove()
 
91
    """
 
92
 
 
93
class NoMessageNoFileError(OliveError):
 
94
    """ No message and no file given (for commit)
 
95
    
 
96
    May occur in:
 
97
        commit.commit()
 
98
    """
31
99
 
32
100
class NonExistingParent(OliveError):
33
 
    """ Parent directory doesn't exist """
 
101
    """ Parent directory doesn't exist
 
102
    
 
103
    May occur in:
 
104
        init.branch()
 
105
    """
34
106
 
35
107
class NonExistingRevision(OliveError):
36
 
    """ The specified revision doesn't exist in the branch """
 
108
    """ The specified revision doesn't exist in the branch
 
109
    
 
110
    May occur in:
 
111
        init.branch()
 
112
    """
37
113
 
38
114
class NonExistingSource(OliveError):
39
 
    """ The source provided doesn't exist """
 
115
    """ The source provided doesn't exist
 
116
    
 
117
    May occur in:
 
118
        init.branch()
 
119
    """
 
120
 
 
121
class NotBranchError(OliveError):
 
122
    """ Specified directory is not a branch
 
123
    
 
124
    May occur in:
 
125
        commit.commit()
 
126
    """
 
127
 
 
128
class NotVersionedError(OliveError):
 
129
    """ Occurs if the specified file/directory is not in the branch
 
130
    
 
131
    May occur in:
 
132
        fileops.remove()
 
133
    """
40
134
 
41
135
class RevisionValueError(OliveError):
42
 
    """ Invalid revision value provided """
 
136
    """ Invalid revision value provided
 
137
    
 
138
    May occur in:
 
139
        init.branch()
 
140
    """
 
141
 
 
142
class StrictCommitError(OliveError):
 
143
    """ Occurs if strict commit fails
 
144
    
 
145
    May occur in:
 
146
        commit.commit()
 
147
    """
43
148
 
44
149
class TargetAlreadyExists(OliveError):
45
 
    """ Target directory already exists """
 
150
    """ Target directory already exists
 
151
    
 
152
    May occur in:
 
153
        init.branch()
 
154
    """