Skip to content

Commit 1902547

Browse files
committed
Wrap checked exception from PluginClient
Signed-off-by: Daniel Widdis <[email protected]>
1 parent f77d190 commit 1902547

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/org/opensearch/flowframework/util/PluginClient.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import org.apache.logging.log4j.LogManager;
1212
import org.apache.logging.log4j.Logger;
13+
import org.opensearch.ExceptionsHelper;
1314
import org.opensearch.action.ActionRequest;
1415
import org.opensearch.action.ActionType;
1516
import org.opensearch.common.util.concurrent.ThreadContext;
@@ -54,6 +55,8 @@ protected <Request extends ActionRequest, Response extends ActionResponse> void
5455
logger.info("Running transport action with subject: {}", subject.getPrincipal().getName());
5556
super.doExecute(action, request, ActionListener.runBefore(listener, ctx::restore));
5657
});
58+
} catch (Exception e) {
59+
throw ExceptionsHelper.convertToRuntime(e);
5760
}
5861
}
5962
}

0 commit comments

Comments
 (0)