Skip to content

Commit fb54cd1

Browse files
committed
Remove some remaining instances of Throwables
1 parent b4f80a7 commit fb54cd1

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎src/main/java/com/ibm/watson/developer_cloud/retrieve_and_rank/v1/HttpSolrConfigManager.java‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import java.util.Collection;
2727
import java.util.logging.Logger;
2828

29-
import com.google.common.base.Throwables;
3029
import com.ibm.watson.developer_cloud.alchemy.v1.util.PublicationDateTypeAdapter;
3130
import com.ibm.watson.developer_cloud.http.RequestBuilder;
3231
import com.ibm.watson.developer_cloud.retrieve_and_rank.v1.models.RemoteError;
@@ -95,7 +94,7 @@ public void deleteConfiguration(final String configName) {
9594
try {
9695
parseResponse(execute(delete), configPath);
9796
} catch (final Exception e) {
98-
Throwables.propagate(e);
97+
throw new RuntimeException(e);
9998
}
10099
}
101100

@@ -141,7 +140,7 @@ private void postConfigZip(String configName, File file) {
141140
try {
142141
parseResponse(execute(post.build()), configPath);
143142
} catch (final Exception e) {
144-
Throwables.propagate(e);
143+
throw new RuntimeException(e);
145144
}
146145
}
147146

‎src/main/java/com/ibm/watson/developer_cloud/retrieve_and_rank/v1/utils/ZipUtils.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131

3232
import org.apache.commons.lang3.StringUtils;
3333

34-
import com.google.common.base.Throwables;
35-
3634
public class ZipUtils {
3735
private static final MessageFormatter MSGS = new MessageFormatter(bundleName());
3836

@@ -84,7 +82,7 @@ public FileVisitResult visitFileFailed(Path file, IOException exc) {
8482
out.close();
8583
}
8684
} catch (final IOException e) {
87-
Throwables.propagate(e);
85+
throw new RuntimeException(e);
8886
}
8987
}
9088
}

0 commit comments

Comments
 (0)