summaryrefslogtreecommitdiff
path: root/numpy/core/_internal.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2017-02-09 18:22:00 +0000
committerEric Wieser <wieser.eric@gmail.com>2017-02-20 22:03:07 +0000
commiteb642f1b6533fcd92e366377f5859e4ea56d5eed (patch)
tree01969f8ba2d5316858caf2d017dcf6a09157c495 /numpy/core/_internal.py
parent370b6506f128460371484a50c813d66e64582f44 (diff)
downloadnumpy-eb642f1b6533fcd92e366377f5859e4ea56d5eed.tar.gz
ENH: For compatibility, use an exception type that subclasses both original types
Diffstat (limited to 'numpy/core/_internal.py')
-rw-r--r--numpy/core/_internal.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/numpy/core/_internal.py b/numpy/core/_internal.py
index 741c8bb5f..d73cdcc55 100644
--- a/numpy/core/_internal.py
+++ b/numpy/core/_internal.py
@@ -630,3 +630,6 @@ def _gcd(a, b):
# Exception used in shares_memory()
class TooHardError(RuntimeError):
pass
+
+class AxisError(ValueError, IndexError):
+ pass