summaryrefslogtreecommitdiffstats
path: root/error.py
diff options
context:
space:
mode:
Diffstat (limited to 'error.py')
-rw-r--r--error.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/error.py b/error.py
index 812585cd..78c5c0e0 100644
--- a/error.py
+++ b/error.py
@@ -77,6 +77,18 @@ class NoSuchProjectError(Exception):
77 return 'in current directory' 77 return 'in current directory'
78 return self.name 78 return self.name
79 79
80
81class InvalidProjectGroupsError(Exception):
82 """A specified project is not suitable for the specified groups
83 """
84 def __init__(self, name=None):
85 self.name = name
86
87 def __str__(self):
88 if self.Name is None:
89 return 'in current directory'
90 return self.name
91
80class RepoChangedException(Exception): 92class RepoChangedException(Exception):
81 """Thrown if 'repo sync' results in repo updating its internal 93 """Thrown if 'repo sync' results in repo updating its internal
82 repo or manifest repositories. In this special case we must 94 repo or manifest repositories. In this special case we must