code: public static ResolvingException wrap(RRequest request, Exception e) {
          if (e instanceof ResolvingException) return (ResolvingException) e;
          return new ResolvingException(request, e);
      }
docs: Wraps e in an resolving exception, if it isn't one already.
  @param request
  @param e
  @return resolving exception