Skip to content

Commit

Permalink
Catching all exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hi-Fi committed Aug 3, 2018
1 parent a2a390a commit fb02286
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ public File exportCacheToFile() {
ObjectMapper objectMapper = new ObjectMapper();
objectMapper.configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false);
objectMapper.writeValue(outputFile, cache.getMessageDatas());
} catch (IOException ioe) {
log.error("Generation of export YAML failed", ioe);
} catch (Exception e) {
log.error("Generation of export YAML failed", e);
}
return outputFile;
}
Expand All @@ -53,7 +53,7 @@ public void importCacheFromFile(MultipartFile file) {
}
cache.appendToMessageDatas(dataItem.getValue());
}
} catch (IOException e) {
} catch (Exception e) {
log.error("Reading of import YAML failed", e);
}
}
Expand Down

0 comments on commit fb02286

Please # to comment.