Commit 77bcf148 authored by Tobias Meuser's avatar Tobias Meuser
Browse files

Improved error handling

parent 125d6756
......@@ -37,6 +37,7 @@ import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import de.tud.kom.p2psim.api.scenario.ConfigurationException;
import de.tud.kom.p2psim.impl.util.Tuple;
import de.tud.kom.p2psim.impl.util.toolkits.DOMToolkit;
......@@ -121,9 +122,13 @@ public class XMLConfigFile implements ConfigFile {
try {
parseContent();
parsed = true;
} catch (ConfigFileException e) {
log("Invalid configuration for starting a scenario. Pleae choose a different one!");
parsed = true;
} catch (RuntimeException e) {
throw e;
} catch (Exception e) {
log("Problems while parsing. Will not retry.");
e.printStackTrace();
parsed = true;
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment