summaryrefslogtreecommitdiff
path: root/numpy/exceptions.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/exceptions.py')
-rw-r--r--numpy/exceptions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/exceptions.py b/numpy/exceptions.py
index ca0a47c04..d2fe9257b 100644
--- a/numpy/exceptions.py
+++ b/numpy/exceptions.py
@@ -146,14 +146,14 @@ class AxisError(ValueError, IndexError):
>>> np.cumsum(array_1d, axis=1)
Traceback (most recent call last):
...
- numpy.AxisError: axis 1 is out of bounds for array of dimension 1
+ numpy.exceptions.AxisError: axis 1 is out of bounds for array of dimension 1
Negative axes are preserved:
>>> np.cumsum(array_1d, axis=-2)
Traceback (most recent call last):
...
- numpy.AxisError: axis -2 is out of bounds for array of dimension 1
+ numpy.exceptions.AxisError: axis -2 is out of bounds for array of dimension 1
The class constructor generally takes the axis and arrays'
dimensionality as arguments: