class_docstr: Axis supplied was invalid. 
class_docstr_tok: ["Axis","supplied","was","invalid","."]
code: def __init__(self, axis, ndim=None, msg_prefix=None):
      # single-argument form just delegates to base class
      if ndim is None and msg_prefix is None:
          msg = axis
  
      # do the string formatting here, to save work in the C code
      else:
          msg = "axis {} is out of bounds for array of dimension {}".format(
              axis, ndim
          )
          if msg_prefix is not None:
              msg = "{}: {}".format(msg_prefix, msg)
  
      super(AxisError, self).__init__(msg)
  
imports: from __future__ import division, absolute_import, print_function
  import re
  import sys
  import platform
  from numpy.compat import unicode
  from numpy.core.overrides import set_module
  from .multiarray import dtype, array, ndarray
label_desc: Use image node_id 1 to create a new AxisError object from inherited base classes: ValueError, IndexError with example: obj = AxisError(axis, ndim, msg_prefix)