summaryrefslogtreecommitdiff
path: root/buildstream/_exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_exceptions.py')
-rw-r--r--buildstream/_exceptions.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/buildstream/_exceptions.py b/buildstream/_exceptions.py
index fb42d9fd2..27045bece 100644
--- a/buildstream/_exceptions.py
+++ b/buildstream/_exceptions.py
@@ -70,6 +70,7 @@ class ErrorDomain(Enum):
PROG_NOT_FOUND = 12
SOURCE = 10
ELEMENT = 11
+ APP = 12
# BstError is an internal base exception class for BuildSream
@@ -231,3 +232,12 @@ class PipelineError(BstError):
super().__init__(message, detail=detail, domain=ErrorDomain.PIPELINE, reason=reason)
self.terminated = terminated
+
+
+# AppError
+#
+# Raised from the frontend App directly
+#
+class AppError(BstError):
+ def __init__(self, message, detail=None, reason=None):
+ super().__init__(message, detail=detail, domain=ErrorDomain.APP, reason=reason)