code: public static IOException translateException(String operation, Path path,
        AmazonClientException exception) {
      return translateException(operation, path.toString(), exception);
    }
docs: Translate an exception raised in an operation into an IOException. The
  specific type of IOException depends on the class of
  {@link AmazonClientException} passed in, and any status codes included in
  the operation. That is: HTTP error codes are examined and can be used to
  build a more specific response.
  
  @param operation operation
  @param path path operated on (must not be null)
  @param exception amazon exception raised
  @return an IOE which wraps the caught exception