diff options
Diffstat (limited to 'astroid/exceptions.py')
-rw-r--r-- | astroid/exceptions.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/astroid/exceptions.py b/astroid/exceptions.py index ea2b9b07..8b3f2522 100644 --- a/astroid/exceptions.py +++ b/astroid/exceptions.py @@ -196,6 +196,14 @@ class _NonDeducibleTypeHierarchy(Exception): """Raised when is_subtype / is_supertype can't deduce the relation between two types.""" +class AstroidIndexError(AstroidError): + """Raised when an Indexable / Mapping does not have an index / key.""" + + +class AstroidTypeError(AstroidError): + """Raised when a TypeError would be expected in Python code.""" + + # Backwards-compatibility aliases OperationError = util.BadOperationMessage UnaryOperationError = util.BadUnaryOperationMessage |