mehb-groww / test1

Overly generic exceptions should not be thrown JAVA-W1042
Anti-pattern
Major
a year agoa year old
downloadFileFromURL should throw an exception more specific than Exception
 94        }
 95    }
 96
 97    private static void downloadFileFromURL(String urlString, File destination) throws Exception { 98        if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) {
 99            String username = System.getenv("MVNW_USERNAME");
100            char[] password = System.getenv("MVNW_PASSWORD").toCharArray();