Skip to content

Commit

Permalink
add default switch case
Browse files Browse the repository at this point in the history
Signed-off-by: Bhavana Ramaram <[email protected]>
  • Loading branch information
rbhavna committed Oct 9, 2024
1 parent 0bdc387 commit 14a1188
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@ public static ConnectorAction createConnectorAction(Connector connector, Connect
: predictEndpoint + "/${parameters.processedJobArn}";
method = isCancelAction ? "POST" : "GET";
break;
default:
String errorMessage = isCancelAction
? "Please configure the action type to cancel the batch job in the connector"
: "Please configure the action type to get the batch job details in the connector";
throw new UnsupportedOperationException(errorMessage);
}

return ConnectorAction
Expand Down

0 comments on commit 14a1188

Please sign in to comment.