OLD | NEW |
(Empty) | |
| 1 # This program is free software; you can redistribute it and/or modify it under |
| 2 # the terms of the GNU Lesser General Public License as published by the Free So
ftware |
| 3 # Foundation; either version 2 of the License, or (at your option) any later |
| 4 # version. |
| 5 # |
| 6 # This program is distributed in the hope that it will be useful, but WITHOUT |
| 7 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
| 8 # FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more d
etails. |
| 9 # |
| 10 # You should have received a copy of the GNU Lesser General Public License along
with |
| 11 # this program; if not, write to the Free Software Foundation, Inc., |
| 12 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 13 # copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
| 14 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr |
| 15 # copyright 2003-2010 Sylvain Thenault, all rights reserved. |
| 16 # contact mailto:thenault@gmail.com |
| 17 # |
| 18 # This file is part of logilab-astng. |
| 19 # |
| 20 # logilab-astng is free software: you can redistribute it and/or modify it |
| 21 # under the terms of the GNU Lesser General Public License as published by the |
| 22 # Free Software Foundation, either version 2.1 of the License, or (at your |
| 23 # option) any later version. |
| 24 # |
| 25 # logilab-astng is distributed in the hope that it will be useful, but |
| 26 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| 27 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License |
| 28 # for more details. |
| 29 # |
| 30 # You should have received a copy of the GNU Lesser General Public License along |
| 31 # with logilab-astng. If not, see <http://www.gnu.org/licenses/>. |
| 32 """this module contains exceptions used in the astng library |
| 33 |
| 34 """ |
| 35 |
| 36 __doctype__ = "restructuredtext en" |
| 37 |
| 38 class ASTNGError(Exception): |
| 39 """base exception class for all astng related exceptions""" |
| 40 |
| 41 class ASTNGBuildingException(ASTNGError): |
| 42 """exception class when we are unable to build an astng representation""" |
| 43 |
| 44 class ResolveError(ASTNGError): |
| 45 """base class of astng resolution/inference error""" |
| 46 |
| 47 class NotFoundError(ResolveError): |
| 48 """raised when we are unable to resolve a name""" |
| 49 |
| 50 class InferenceError(ResolveError): |
| 51 """raised when we are unable to infer a node""" |
| 52 |
| 53 class UnresolvableName(InferenceError): |
| 54 """raised when we are unable to resolve a name""" |
| 55 |
| 56 class NoDefault(ASTNGError): |
| 57 """raised by function's `default_value` method when an argument has |
| 58 no default value |
| 59 """ |
| 60 |
OLD | NEW |