code: public static JSONObjectException wrapWithPath(Throwable src, Object refFrom,
                                                      int index)
      {
          return wrapWithPath(src, new Reference(refFrom, index));
      }
docs: Method that can be called to either create a new JsonMappingException
  (if underlying exception is not a JsonMappingException), or augment
  given exception with given path/reference information.
  
  This version of method is called when the reference is through an
  index, which happens with arrays and Collections.