Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
77bcf148
Commit
77bcf148
authored
Feb 02, 2021
by
Tobias Meuser
Browse files
Improved error handling
parent
125d6756
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/util/guirunner/impl/XMLConfigFile.java
View file @
77bcf148
...
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment