summaryrefslogtreecommitdiff
path: root/buildstream/element.py
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-06 18:29:30 +0900
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-11-06 18:29:30 +0900
commit2cb09f3463833610c4ce5a70162818643662658d (patch)
tree9bff9904f9a0ad816089ef761d52538d557d1847 /buildstream/element.py
parent0ed7bd122679f82158a000a8bca5cd868fbdfb4e (diff)
downloadbuildstream-2cb09f3463833610c4ce5a70162818643662658d.tar.gz
Refactoring: Renamed _BstError -> BstError
Base class for exceptions is now a part of the already private _exceptions module Also moved PipelineError from _pipeline -> _exceptions module
Diffstat (limited to 'buildstream/element.py')
-rw-r--r--buildstream/element.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildstream/element.py b/buildstream/element.py
index ac5d69ac6..6c55026ee 100644
--- a/buildstream/element.py
+++ b/buildstream/element.py
@@ -37,7 +37,7 @@ import shutil
from . import _yaml
from ._variables import Variables
-from ._exceptions import _BstError, LoadError, LoadErrorReason, ImplError
+from ._exceptions import BstError, LoadError, LoadErrorReason, ImplError
from . import Plugin, Consistency
from .project import BST_ARTIFACT_VERSION as BST_CORE_ARTIFACT_VERSION
from . import SandboxFlags
@@ -81,7 +81,7 @@ class Scope(Enum):
"""
-class ElementError(_BstError):
+class ElementError(BstError):
"""Raised by Element implementations.
This exception is raised when an :class:`.Element` encounters an error.
@@ -1066,7 +1066,7 @@ class Element(Plugin):
self.stage(sandbox)
# Step 3 - Assemble
collect = self.assemble(sandbox)
- except _BstError as e:
+ except BstError as e:
# If an error occurred assembling an element in a sandbox,
# then tack on the sandbox directory to the error
e.sandbox = rootdir