Catch file not found errors better

This commit is contained in:
drdev
2014-05-11 18:17:34 +00:00
parent 343c19a588
commit 4af6e5224e
4 changed files with 14 additions and 1 deletions

View File

@@ -5,6 +5,7 @@ import forge.properties.ForgeConstants;
import forge.util.XmlUtil;
import java.io.FileNotFoundException;
import java.net.MalformedURLException;
import java.util.HashMap;
import java.util.Map;
@@ -49,6 +50,9 @@ public class CardPreferences {
catch (FileNotFoundException e) {
//ok if file not found
}
catch (MalformedURLException e) {
//ok if file not found
}
catch (Exception e) {
e.printStackTrace();
}

View File

@@ -47,7 +47,8 @@ public class CardReaderExperiments {
break;
}
}
} catch (FileNotFoundException ex) {
}
catch (FileNotFoundException ex) {
}
}

View File

@@ -5,6 +5,7 @@ import forge.properties.ForgeConstants;
import forge.util.XmlUtil;
import java.io.FileNotFoundException;
import java.net.MalformedURLException;
import java.util.HashMap;
import java.util.Map;
@@ -64,6 +65,9 @@ public class DeckPreferences {
catch (FileNotFoundException e) {
//ok if file not found
}
catch (MalformedURLException e) {
//ok if file not found
}
catch (Exception e) {
e.printStackTrace();
}

View File

@@ -5,6 +5,7 @@ import forge.properties.ForgeConstants;
import forge.util.XmlUtil;
import java.io.FileNotFoundException;
import java.net.MalformedURLException;
import java.util.Map;
import javax.xml.parsers.DocumentBuilder;
@@ -249,6 +250,9 @@ public enum ItemManagerConfig {
catch (FileNotFoundException e) {
//ok if file not found
}
catch (MalformedURLException e) {
//ok if file not found
}
catch (Exception e) {
e.printStackTrace();
}