mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
add a bit more Exception handling in Gui_DownloadSetPictures_LQ for java.net.ConnectException
This commit is contained in:
@@ -19,6 +19,7 @@ import java.awt.*;
|
|||||||
import java.awt.event.ActionEvent;
|
import java.awt.event.ActionEvent;
|
||||||
import java.awt.event.ActionListener;
|
import java.awt.event.ActionListener;
|
||||||
import java.io.*;
|
import java.io.*;
|
||||||
|
import java.net.ConnectException;
|
||||||
import java.net.InetSocketAddress;
|
import java.net.InetSocketAddress;
|
||||||
import java.net.MalformedURLException;
|
import java.net.MalformedURLException;
|
||||||
import java.net.Proxy;
|
import java.net.Proxy;
|
||||||
@@ -337,7 +338,11 @@ public class Gui_DownloadSetPictures_LQ extends DefaultBoundedRangeModel impleme
|
|||||||
in.close();
|
in.close();
|
||||||
out.flush();
|
out.flush();
|
||||||
out.close();
|
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);
|
System.out.println("Error - possibly missing URL for: " + cards[card].name);
|
||||||
//Log.error("LQ Pictures", "Malformed URL for: "+cards[card].name, mURLe);
|
//Log.error("LQ Pictures", "Malformed URL for: "+cards[card].name, mURLe);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user