mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
Catch file not found errors better
This commit is contained in:
@@ -5,6 +5,7 @@ import forge.properties.ForgeConstants;
|
|||||||
import forge.util.XmlUtil;
|
import forge.util.XmlUtil;
|
||||||
|
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
|
import java.net.MalformedURLException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@@ -49,6 +50,9 @@ public class CardPreferences {
|
|||||||
catch (FileNotFoundException e) {
|
catch (FileNotFoundException e) {
|
||||||
//ok if file not found
|
//ok if file not found
|
||||||
}
|
}
|
||||||
|
catch (MalformedURLException e) {
|
||||||
|
//ok if file not found
|
||||||
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -47,7 +47,8 @@ public class CardReaderExperiments {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (FileNotFoundException ex) {
|
}
|
||||||
|
catch (FileNotFoundException ex) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import forge.properties.ForgeConstants;
|
|||||||
import forge.util.XmlUtil;
|
import forge.util.XmlUtil;
|
||||||
|
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
|
import java.net.MalformedURLException;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
@@ -64,6 +65,9 @@ public class DeckPreferences {
|
|||||||
catch (FileNotFoundException e) {
|
catch (FileNotFoundException e) {
|
||||||
//ok if file not found
|
//ok if file not found
|
||||||
}
|
}
|
||||||
|
catch (MalformedURLException e) {
|
||||||
|
//ok if file not found
|
||||||
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ import forge.properties.ForgeConstants;
|
|||||||
import forge.util.XmlUtil;
|
import forge.util.XmlUtil;
|
||||||
|
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
|
import java.net.MalformedURLException;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import javax.xml.parsers.DocumentBuilder;
|
import javax.xml.parsers.DocumentBuilder;
|
||||||
@@ -249,6 +250,9 @@ public enum ItemManagerConfig {
|
|||||||
catch (FileNotFoundException e) {
|
catch (FileNotFoundException e) {
|
||||||
//ok if file not found
|
//ok if file not found
|
||||||
}
|
}
|
||||||
|
catch (MalformedURLException e) {
|
||||||
|
//ok if file not found
|
||||||
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user