summaryrefslogtreecommitdiff
path: root/buildstream/exceptions.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-12-11 20:50:27 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2016-12-13 16:07:55 +0900
commitc973ff18c75d9a0596bbcff5897f0481670e6b0f (patch)
treef4602eba2466073e009d8b6445920a26503c3a73 /buildstream/exceptions.py
parent5385ed69e221ce9180d5638db98b635968d15b55 (diff)
downloadbuildstream-c973ff18c75d9a0596bbcff5897f0481670e6b0f.tar.gz
Added FetchError exception to raise when a Source could not be fetched.
Diffstat (limited to 'buildstream/exceptions.py')
-rw-r--r--buildstream/exceptions.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/buildstream/exceptions.py b/buildstream/exceptions.py
index f0e951e9f..66f4acbfd 100644
--- a/buildstream/exceptions.py
+++ b/buildstream/exceptions.py
@@ -84,3 +84,14 @@ class PreflightError(Exception):
erroneous.
"""
pass
+
+
+class FetchError(Exception):
+ """Raised while fetching sources
+
+ This exception is raised while fetching sources, either if
+ there is some network error or if the source reference could
+ not be matched in the repository, or if a file or tarball source
+ sha256 sum was not properly matched.
+ """
+ pass