summaryrefslogtreecommitdiff
path: root/astroid/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'astroid/exceptions.py')
-rw-r--r--astroid/exceptions.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/astroid/exceptions.py b/astroid/exceptions.py
index e92abc58..3437a1f9 100644
--- a/astroid/exceptions.py
+++ b/astroid/exceptions.py
@@ -54,6 +54,14 @@ class AstroidBuildingException(AstroidError):
super(AstroidBuildingException, self).__init__(message, **kws)
+class AstroidImportError(AstroidBuildingException):
+ """Exception class used when a module can't be imported by astroid."""
+
+
+class AstroidSyntaxError(AstroidBuildingException):
+ """Exception class used when a module can't be parsed."""
+
+
class NoDefault(AstroidError):
"""raised by function's `default_value` method when an argument has
no default value
@@ -96,9 +104,11 @@ class MroError(ResolveError):
for m in self.mros)
return self.message.format(mros=mro_names, cls=self.cls)
+
class DuplicateBasesError(MroError):
"""Error raised when there are duplicate bases in the same class bases."""
+
class InconsistentMroError(MroError):
"""Error raised when a class's MRO is inconsistent."""