Skip to content

Commit e151877

Browse files
committed
added exception
1 parent a3fa91d commit e151877

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

common/core/src/main/java/zingg/common/core/preprocess/caseNormalize/CaseNormalizer.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@ public boolean isApplicable() {
5252
}
5353

5454
@Override
55-
public ZFrame<D, R, C> preprocess(ZFrame<D, R, C> df) throws ZinggClientException {
55+
public ZFrame<D, R, C> preprocess(ZFrame<D, R, C> df) {
5656
try {
5757
LOG.info("Applying case normalization on input dataframe");
5858
List<String> relevantFields = getRelevantFields();
5959
return applyCaseNormalizer(df, relevantFields);
6060
} catch (Exception exception) {
61-
LOG.warn("Error occurred while performing case normalization, skipping it");
61+
LOG.warn("Error occurred while performing case normalization, skipping it, " + exception);
6262
}
6363
return df;
6464
}

common/core/src/main/java/zingg/common/core/preprocess/stopwords/StopWordsRemover.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public boolean isApplicable(){
4949
}
5050

5151
@Override
52-
public ZFrame<D,R,C> preprocess(ZFrame<D,R,C> df) throws ZinggClientException{
52+
public ZFrame<D,R,C> preprocess(ZFrame<D,R,C> df) throws ZinggClientException {
5353
try {
5454
if(isApplicable()){
5555
LOG.info("Applying stopwords preprocessing on input dataframe");
@@ -60,8 +60,8 @@ public ZFrame<D,R,C> preprocess(ZFrame<D,R,C> df) throws ZinggClientException{
6060
df = removeStopWordsFromDF(df, fd.getFieldName(), pattern);
6161
}
6262
return df;
63-
} catch (Exception exception) {
64-
LOG.warn("Error occurred while applying stopword preprocessing, skipping");
63+
} catch (Exception | ZinggClientException exception) {
64+
LOG.warn("Error occurred while applying stopword preprocessing, skipping, " + exception);
6565
}
6666
return df;
6767
}

0 commit comments

Comments
 (0)