public static IOException convertToIOException()

in hadoop-api-shim/src/main/java/org/apache/hadoop/fs/shim/impl/ShimReflectionSupport.java [65:72]


  public static IOException convertToIOException(Exception e) {
    if (e instanceof InvocationTargetException
        || e instanceof ExecutionException) {
      return unwrapAndconvertToIOException(e);
    } else {
      return convertUnwrappedExceptionToIOE(e);
    }
  }