aboutsummaryrefslogtreecommitdiffstats
path: root/bsie/base/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'bsie/base/errors.py')
-rw-r--r--bsie/base/errors.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/bsie/base/errors.py b/bsie/base/errors.py
index a86b7e8..760351f 100644
--- a/bsie/base/errors.py
+++ b/bsie/base/errors.py
@@ -9,7 +9,9 @@ import typing
# exports
__all__: typing.Sequence[str] = (
+ 'BuilderError',
'ExtractorError',
+ 'LoaderError',
'ReaderError',
)
@@ -19,6 +21,12 @@ __all__: typing.Sequence[str] = (
class _BSIEError(Exception):
"""Generic BSIE error."""
+class BuilderError(_BSIEError):
+ """The Builder failed to create an instance."""
+
+class LoaderError(BuilderError):
+ """Failed to load a module or class."""
+
class ExtractorError(_BSIEError):
"""The Extractor failed to process the given content."""