Skip to content

Commit

Permalink
exception handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Luatan committed Feb 27, 2022
1 parent 489493d commit 5887322
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
24 changes: 12 additions & 12 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,7 @@ protected void load() {
ArrayList<String> temp = (ArrayList<String>) HANDLER.fromJson(reader, HashMap.class).get("domains");
history = new HistoryList<>();
history.addAll(temp);
} catch (IOException e) {
e.printStackTrace();
} catch (JsonSyntaxException jsonE) {
} catch (IOException | JsonSyntaxException e) {
reset();
}
if (history == null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@ protected void load() {
Reader reader = FileStructure.getReader(Config.SETTINGS_CONF_FILE);
config = HANDLER.fromJson(reader, AppConfig.class);
reader.close();
} catch (IOException e) {
e.printStackTrace();
} catch (JsonSyntaxException jsonE) {
} catch (IOException | JsonSyntaxException e) {
reset();
}
if (config == null) {
Expand Down

0 comments on commit 5887322

Please sign in to comment.