diff --git a/server/src/main/java/org/elasticsearch/tasks/LoggingTaskListener.java b/server/src/main/java/org/elasticsearch/tasks/LoggingTaskListener.java index 43ddc83ba15..39d33f414a5 100644 --- a/server/src/main/java/org/elasticsearch/tasks/LoggingTaskListener.java +++ b/server/src/main/java/org/elasticsearch/tasks/LoggingTaskListener.java @@ -49,7 +49,7 @@ public final class LoggingTaskListener implements TaskListener new ParameterizedMessage("{} failed with exception", task.getId()), e); } } diff --git a/server/src/main/java/org/elasticsearch/tasks/TaskListener.java b/server/src/main/java/org/elasticsearch/tasks/TaskListener.java index 6a0c36e0b83..4d2479d3bb9 100644 --- a/server/src/main/java/org/elasticsearch/tasks/TaskListener.java +++ b/server/src/main/java/org/elasticsearch/tasks/TaskListener.java @@ -44,6 +44,6 @@ public interface TaskListener { * @param e * the failure */ - void onFailure(Task task, Throwable e); + void onFailure(Task task, Exception e); } diff --git a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/rest/job/RestDeleteJobAction.java b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/rest/job/RestDeleteJobAction.java index 812b70dc671..68231bb385c 100644 --- a/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/rest/job/RestDeleteJobAction.java +++ b/x-pack/plugin/ml/src/main/java/org/elasticsearch/xpack/ml/rest/job/RestDeleteJobAction.java @@ -79,7 +79,7 @@ public class RestDeleteJobAction extends BaseRestHandler { public void onResponse(Task task, T o) {} @Override - public void onFailure(Task task, Throwable e) {} + public void onFailure(Task task, Exception e) {} }; } }