summaryrefslogtreecommitdiff
path: root/exceptions.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2013-06-18 17:24:28 +0200
committerSylvain Thénault <sylvain.thenault@logilab.fr>2013-06-18 17:24:28 +0200
commitfc02b9e6bc453e0413e324c7a458b5871277744c (patch)
tree5447adcc4b02bff14a98817b4e2d4f98cb1b1443 /exceptions.py
parent2682f50ee379e7e6d7a0c5891ba7211fc8829ab3 (diff)
downloadastroid-git-fc02b9e6bc453e0413e324c7a458b5871277744c.tar.gz
[inference] introduce (but not use it yet) explicit inference for some node instances
Diffstat (limited to 'exceptions.py')
-rw-r--r--exceptions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/exceptions.py b/exceptions.py
index 07fb945e..3889e2e7 100644
--- a/exceptions.py
+++ b/exceptions.py
@@ -36,6 +36,11 @@ class NotFoundError(ResolveError):
class InferenceError(ResolveError):
"""raised when we are unable to infer a node"""
+class UseInferenceDefault(Exception):
+ """exception to be raised in custom inference function to indicate that it
+ should go back to the default behaviour
+ """
+
class UnresolvableName(InferenceError):
"""raised when we are unable to resolve a name"""