summaryrefslogtreecommitdiff
path: root/astroid/exceptions.py
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2015-05-29 16:58:58 +0300
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2015-05-29 16:58:58 +0300
commitea2c98310d103dfa9bf596d9c54a873e401356cf (patch)
tree6c8ef9f1220bf4f6d1cefa7ffd860990246aa748 /astroid/exceptions.py
parent08b05056af12e103c2f37569ad5091ca5fd4d787 (diff)
downloadastroid-git-ea2c98310d103dfa9bf596d9c54a873e401356cf.tar.gz
Add a new SuperError exception subclass, SuperArgumentTypeError, which is raised when there's a problem with any argument of the super call (invalid types).
Diffstat (limited to 'astroid/exceptions.py')
-rw-r--r--astroid/exceptions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/astroid/exceptions.py b/astroid/exceptions.py
index 9e3a279f..47f2fe50 100644
--- a/astroid/exceptions.py
+++ b/astroid/exceptions.py
@@ -46,6 +46,10 @@ class SuperError(ResolveError):
"""Error raised when there is a problem with a super call."""
+class SuperArgumentTypeError(SuperError):
+ """Error raised when the super arguments are invalid."""
+
+
class NotFoundError(ResolveError):
"""raised when we are unable to resolve a name"""