summaryrefslogtreecommitdiffstats
path: root/error.py
diff options
context:
space:
mode:
authorConley Owens <cco3@android.com>2012-11-15 17:33:11 -0800
committerConley Owens <cco3@android.com>2012-11-15 18:50:11 -0800
commit75ee0570da09abb1d2bbefe0d25f0560727e6b71 (patch)
treec62ab4990212282d9c18c694ec21830ad33481f2 /error.py
parent88b86728a4451b97a2c6dcae2feb98014c077793 (diff)
downloadgit-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.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/error.py b/error.py
index 21482486..7e52b016 100644
--- a/error.py
+++ b/error.py
@@ -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
24class NoManifestException(Exception):
25 """The required manifest does not exist.
26 """
27
24class EditorError(Exception): 28class EditorError(Exception):
25 """Unspecified error from the user's text editor. 29 """Unspecified error from the user's text editor.
26 """ 30 """