diff options
author | Ceridwen <ceridwenv@gmail.com> | 2015-11-06 10:48:59 -0500 |
---|---|---|
committer | Ceridwen <ceridwenv@gmail.com> | 2015-11-06 10:48:59 -0500 |
commit | a1874fa7b631d7a4538682ccc8242f489c1f3721 (patch) | |
tree | 03346b76fedd296a50272bf018f92b013c64767e /astroid/exceptions.py | |
parent | c094cfd61bb10e0d8b392e3d91606621e2010ff3 (diff) | |
download | astroid-git-a1874fa7b631d7a4538682ccc8242f489c1f3721.tar.gz |
Add structured exceptions to decorators and remaining functions.
* Use explicit StopIteration to pass information from generators to
raise_if_nothing_inferred and path_wrapper, rather than return or
implicit termination by reaching the end of the code block.
* Remove remove_nodes in favor of handling the cases in local_attr,
istance_attr, and getattr, to avoid the need for complicated
information passing when needing to raise an exception.
Diffstat (limited to 'astroid/exceptions.py')
-rw-r--r-- | astroid/exceptions.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/astroid/exceptions.py b/astroid/exceptions.py index 9f49753b..ede21d96 100644 --- a/astroid/exceptions.py +++ b/astroid/exceptions.py @@ -69,18 +69,6 @@ class NoDefault(AstroidError): super(NoDefault, self).__init__(message, **kws) -class DefaultStop(AstroidError): - '''This is a special error that's only meant to be raised in - generators wrapped with raise_if_nothing_inferred and - yes_if_nothing_inferred. It does nothing other than carry a set - of attributes to be used in raising in InferenceError. - - ''' - - # def __init__(self, message='{func!r} has no default for {name!r}.', **kws): - # super(NoDefault, self).__init__(message, **kws) - - class ResolveError(AstroidError): """Base class of astroid resolution/inference error. |