From 8464f01c13136ef1d10cd4d140a3a1d74c8e2cca Mon Sep 17 00:00:00 2001 From: Surya Sashank Nistala Date: Tue, 8 Oct 2024 16:01:50 -0700 Subject: [PATCH] handle generic Exception Signed-off-by: Surya Sashank Nistala --- .../securityanalytics/transport/TransportIndexRuleAction.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexRuleAction.java b/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexRuleAction.java index 5abfc08f7..e58a58258 100644 --- a/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexRuleAction.java +++ b/src/main/java/org/opensearch/securityanalytics/transport/TransportIndexRuleAction.java @@ -222,10 +222,8 @@ public void onResponse(Map fieldMappings) { rule ); indexRule(ruleDoc, fieldMappings); - } catch (IOException | SigmaError e) { - onFailures(e); } catch (Exception e) { - //TODO change to catching only DocIdAlreadyExistsException + onFailures(e); } }