Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public A load(String filePath) throws ZinggClientException {
try {
return objectMapper.readValue(new File(filePath), argsClass);
} catch (Exception exception) {
throw new ZinggClientException("Error reading config from file: " + filePath);
throw new ZinggClientException("Error reading config from file: " + filePath, exception);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ public static String toString (Object o){
StringWriter writer = new StringWriter();
return mapper.writeValueAsString(o);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
return null;
throw new RuntimeException("Error converting object to JSON string", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ default ZFrame<D,R,C> preprocess(ZFrame<D,R,C> df) throws ZinggClientException {
}
} catch (Exception exception) {
LOG.warn("Error occurred while performing preprocessor" + exception);
throw new ZinggException("Error occurred while performing preprocessor");
throw new ZinggException("Error occurred while performing preprocessor", exception);
}
return dfp;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public ZFrame<D, R, C> preprocess(ZFrame<D, R, C> df) {
}
} catch (Exception exception) {
LOG.warn("Error occurred while performing multifield preprocessor" + exception);
throw new ZinggException("Error occurred while performing multifield preprocessor");
throw new ZinggException("Error occurred while performing multifield preprocessor", exception);
}
return df;
}
Expand Down
Loading