aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2018-02-08 14:15:57 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2018-02-08 14:15:57 +0000
commitb60ee75f7e897a4ff59b97800b1bd4c2775afc61 (patch)
treec497ccb7bd189f00f8d5312ffc0a5c657757b528 /config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java
parent561609ee885b89046e9bb6a34b521d3d61106c0c (diff)
Remove void code reference.
Diffstat (limited to 'config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java')
-rw-r--r--config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java13
1 files changed, 2 insertions, 11 deletions
diff --git a/config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java b/config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java
index 65f7bbedc68..540393cec7b 100644
--- a/config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java
+++ b/config-model/src/main/java/com/yahoo/vespa/model/AbstractService.java
@@ -6,7 +6,6 @@ import com.yahoo.config.model.api.PortInfo;
import com.yahoo.config.model.api.ServiceInfo;
import com.yahoo.config.model.producer.AbstractConfigProducer;
import com.yahoo.vespa.defaults.Defaults;
-import com.yahoo.vespa.filedistribution.PathDoesNotExistException;
import java.util.Collection;
import java.util.LinkedHashMap;
@@ -502,18 +501,10 @@ public abstract class AbstractService extends AbstractConfigProducer<AbstractCon
* @return the file reference hash
*/
public FileReference sendFile(String relativePath) {
- try {
- return getRoot().getFileDistributor().sendFileToHost(relativePath, getHost());
- } catch (PathDoesNotExistException e) {
- throw new RuntimeException("File does not exist: '" + relativePath + "'.");
- }
+ return getRoot().getFileDistributor().sendFileToHost(relativePath, getHost());
}
public FileReference sendUri(String uri) {
- try {
- return getRoot().getFileDistributor().sendUriToHost(uri, getHost());
- } catch (PathDoesNotExistException e) {
- throw new RuntimeException("Uri does not exist: '" + uri + "'.");
- }
+ return getRoot().getFileDistributor().sendUriToHost(uri, getHost());
}
/**