summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-11 13:16:42 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-10-11 13:16:42 +0900
commitbf679177ffd3041ad72600a87086bee19807753c (patch)
tree3961da98210b6596597cdd1b0c5da07ef1e36ca6
parent7704f58146ef266e135425e11572df434573c370 (diff)
downloadbuildstream-bf679177ffd3041ad72600a87086bee19807753c.tar.gz
exceptions.py: Added USER_ASSERTION load error
-rw-r--r--buildstream/exceptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/exceptions.py b/buildstream/exceptions.py
index 5e86c1e3f..c33e7d7bf 100644
--- a/buildstream/exceptions.py
+++ b/buildstream/exceptions.py
@@ -100,6 +100,9 @@ class LoadErrorReason(Enum):
EXPRESSION_FAILED = 8
"""A conditional expression failed to resolve"""
+ USER_ASSERTION = 9
+ """An assertion was intentionally encoded into project YAML"""
+
class LoadError(_BstError):
"""Raised while loading some YAML.