Permalink
Browse files

Added generic exception catch for json validator

  • Loading branch information...
1 parent bcfe068 commit f5337e860dcb0e8ae4dbd03e2f8cbb8ce3f5f3dd @xstevens xstevens committed Feb 12, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/main/java/com/mozilla/bagheera/consumer/validation/JsonValidator.java
@@ -47,6 +47,8 @@ public boolean isValid(byte[] data) {
LOG.error("JSON parse error");
} catch (IOException e) {
LOG.error("JSON IO error");
+ } catch (Exception e) {
+ LOG.error("Generic error during validation: ", e);
} finally {
if (parser != null) {
try {

0 comments on commit f5337e8

Please sign in to comment.