diff options
Diffstat (limited to 'error.py')
| -rw-r--r-- | error.py | 12 |
1 files changed, 12 insertions, 0 deletions
| @@ -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 | |||
| 81 | class 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 | |||
| 80 | class RepoChangedException(Exception): | 92 | class 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 |
