add a bit more Exception handling in Gui_DownloadSetPictures_LQ for java.net.ConnectException

This commit is contained in:
slapshot5
2011-10-07 06:16:19 +00:00
parent 6314417e1f
commit b7ba5065d9

View File

@@ -19,6 +19,7 @@ import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.*;
import java.net.ConnectException;
import java.net.InetSocketAddress;
import java.net.MalformedURLException;
import java.net.Proxy;
@@ -337,7 +338,11 @@ public class Gui_DownloadSetPictures_LQ extends DefaultBoundedRangeModel impleme
in.close();
out.flush();
out.close();
} catch (MalformedURLException mURLe) {
}
catch (ConnectException ce) {
System.out.println("Connection refused for url: " + url);
}
catch (MalformedURLException mURLe) {
System.out.println("Error - possibly missing URL for: " + cards[card].name);
//Log.error("LQ Pictures", "Malformed URL for: "+cards[card].name, mURLe);
}