diff options
author | Conley Owens <cco3@android.com> | 2012-11-15 17:33:11 -0800 |
---|---|---|
committer | Conley Owens <cco3@android.com> | 2012-11-15 18:50:11 -0800 |
commit | 75ee0570da09abb1d2bbefe0d25f0560727e6b71 (patch) | |
tree | c62ab4990212282d9c18c694ec21830ad33481f2 /error.py | |
parent | 88b86728a4451b97a2c6dcae2feb98014c077793 (diff) | |
download | git-repo-75ee0570da09abb1d2bbefe0d25f0560727e6b71.tar.gz |
Raise a NoManifestException when the manifest DNE
When a command (eg, `repo forall`) expects the manifest project to
exist, but there is no manifest, an IOException gets raised. This
change defines a new Exception type to be raised in these cases and
raises it when project.py fails to read the manifest.
Change-Id: Iac576c293a37f7d8f60cd4f6aa95b2c97f9e7957
Diffstat (limited to 'error.py')
-rw-r--r-- | error.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -21,6 +21,10 @@ class ManifestInvalidRevisionError(Exception): | |||
21 | """The revision value in a project is incorrect. | 21 | """The revision value in a project is incorrect. |
22 | """ | 22 | """ |
23 | 23 | ||
24 | class NoManifestException(Exception): | ||
25 | """The required manifest does not exist. | ||
26 | """ | ||
27 | |||
24 | class EditorError(Exception): | 28 | class EditorError(Exception): |
25 | """Unspecified error from the user's text editor. | 29 | """Unspecified error from the user's text editor. |
26 | """ | 30 | """ |