1
# Copyright (C) 2006 by Szilveszter Farkas (Phanatic)
2
# Some parts of the code are:
3
# Copyright (C) 2005, 2006 by Canonical Ltd
5
# This program is free software; you can redistribute it and/or modify
6
# it under the terms of the GNU General Public License as published by
7
# the Free Software Foundation; either version 2 of the License, or
8
# (at your option) any later version.
10
# This program is distributed in the hope that it will be useful,
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
# GNU General Public License for more details.
15
# You should have received a copy of the GNU General Public License
16
# along with this program; if not, write to the Free Software
17
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
class OliveError(Exception):
20
""" Parent class for Olive exceptions/errors """
23
class AlreadyBranchError(OliveError):
24
""" The specified directory is already a branch
30
class BoundBranchOutOfDate(OliveError):
31
""" Occurs if the bound branch is out of date
37
class BranchExistsWithoutWorkingTree(OliveError):
38
""" The specified directory is a branch, however it doesn't contain a working tree
44
class ConflictsInTreeError(OliveError):
45
""" Occurs if non-resolved conflicts remained in the tree
51
class DirectoryAlreadyExists(OliveError):
52
""" The specified directory already exists
58
class DivergedBranchesError(OliveError):
59
""" The branches have been diverged
65
class EmptyMessageError(OliveError):
66
""" Occurs if no commit message specified
72
class LocalRequiresBoundBranch(OliveError):
73
""" Occurs when the local branch needs a bound branch
79
class NoChangesToCommitError(OliveError):
80
""" Occurs if there are no changes to commit
86
class NoFilesSpecified(OliveError):
87
""" No files were specified as an argument to a function
93
class NoLocationKnown(OliveError):
94
""" No location known or specified
101
class NoMatchingFiles(OliveError):
102
""" No files found which could match the criteria
108
class NoMessageNoFileError(OliveError):
109
""" No message and no file given (for commit)
115
class NonExistingParent(OliveError):
116
""" Parent directory doesn't exist
124
class NonExistingRevision(OliveError):
125
""" The specified revision doesn't exist in the branch
131
class NonExistingSource(OliveError):
132
""" The source provided doesn't exist
138
class NotBranchError(OliveError):
139
""" Specified directory is not a branch
145
class NotVersionedError(OliveError):
146
""" Occurs if the specified file/directory is not in the branch
152
class PathPrefixNotCreated(OliveError):
153
""" The path prefix couldn't be created
159
class RevisionValueError(OliveError):
160
""" Invalid revision value provided
165
class StrictCommitError(OliveError):
166
""" Occurs if strict commit fails
172
class TargetAlreadyExists(OliveError):
173
""" Target directory already exists