print an error message if an exception occurs when downloading images

master
melvin 2011-05-21 15:03:09 +08:00
parent e2fb18e97d
commit f8adecd012
1 changed files with 6 additions and 2 deletions

View File

@ -12,15 +12,19 @@ import java.util.ArrayList;
import magic.MagicMain;
import magic.model.MagicCardDefinition;
/**
* Download the necessary images from the WWW
*/
public class DownloadImageFiles extends ArrayList<DownloadImageFile> {
private static final long serialVersionUID = 1L;
public DownloadImageFiles(final String filename) {
try {
loadDownloadImageFiles(filename);
} catch (final Exception ex) {}
} catch (final Exception ex) {
System.err.println("ERROR during DownloadImageFiles");
}
}
private void loadDownloadImageFiles(final String filename) throws IOException {