summaryrefslogtreecommitdiffstats
path: root/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/DocumentOperationExecutorImpl.java
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-10-01 19:51:47 +0200
committerJon Marius Venstad <venstad@gmail.com>2020-10-01 19:51:47 +0200
commit75cafe646fbbbf9ba65021d65e2bb6afd1c4d156 (patch)
tree94235e789f690f96caddf28e7d750945df105a0e /vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/DocumentOperationExecutorImpl.java
parenta80b6cb19619821ce4d354aff12937d2b4557919 (diff)
Catch Throwable instead of just RuntimeException
Diffstat (limited to 'vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/DocumentOperationExecutorImpl.java')
-rw-r--r--vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/DocumentOperationExecutorImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/DocumentOperationExecutorImpl.java b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/DocumentOperationExecutorImpl.java
index 135b6a824c8..fb06991f2df 100644
--- a/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/DocumentOperationExecutorImpl.java
+++ b/vespaclient-container-plugin/src/main/java/com/yahoo/document/restapi/DocumentOperationExecutorImpl.java
@@ -221,8 +221,8 @@ public class DocumentOperationExecutorImpl implements DocumentOperationExecutor
catch (IllegalArgumentException | ParseException e) {
context.error(BAD_REQUEST, Exceptions.toMessageString(e));
}
- catch (RuntimeException e) {
- context.error(ERROR, Exceptions.toMessageString(e));
+ catch (Throwable t) {
+ context.error(ERROR, Exceptions.toMessageString(t));
}
}