summaryrefslogtreecommitdiff
path: root/buildstream/_exceptions.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-12-20 17:38:07 -0500
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-12-20 18:58:56 -0500
commitedb247d44b3d83ba0711440f463c8e920532a67f (patch)
tree763939709be6e2ca94a259ba9b7a14a3d9393822 /buildstream/_exceptions.py
parent917b09ef07bd83a78b2292f6259451459cfdd54c (diff)
downloadbuildstream-edb247d44b3d83ba0711440f463c8e920532a67f.tar.gz
utils.py: Add UtilError
Report UtilError instead of OSError and similar python errors. Also ensure we catch system errors and raise UtilError with descriptive text instead; for the user experience; this is the difference between: o A FAILURE message with a description as to what went wrong (exception handled with UtilError) o A BUG message with the unhandled system error printed with a stack trace (exception left unhandled) Also, UtilsError and ProgramNotFoundError are now public exceptions declared in utils.py, where they will appear in the documentation.
Diffstat (limited to 'buildstream/_exceptions.py')
-rw-r--r--buildstream/_exceptions.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/buildstream/_exceptions.py b/buildstream/_exceptions.py
index 328dcca4e..ffcd992be 100644
--- a/buildstream/_exceptions.py
+++ b/buildstream/_exceptions.py
@@ -134,19 +134,6 @@ class ImplError(BstError):
pass
-# ProgramNotFoundError
-#
-# Raised if a required program is not found
-#
-# BuildStream requires various software to exist on the host for
-# it to work correctly. This exception is thrown if that software
-# can not be found. E.g. The :class:`.Sandbox` class expects that
-# bubblewrap is installed for it to work.
-#
-class ProgramNotFoundError(BstError):
- pass
-
-
# PlatformError
#
# Raised if the current platform is not supported.