Skip to content

Commit

Permalink
fix(importer): handle missing required properties as invalid connecto…
Browse files Browse the repository at this point in the history
…r definition exception (#2021)

* fix(importer): handle missing required properties as invalid connector definition exception

* lint

(cherry picked from commit 82a406d)
  • Loading branch information
chillleader committed Feb 26, 2024
1 parent f1bf269 commit 36fe4f8
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,10 @@ private Map<String, String> getRawProperties(BaseElement element) {

private String extractRequiredProperty(BaseElement element, String name) {
return extractProperty(element, name)
.orElseThrow(() -> new IllegalStateException("Missing required property " + name));
.orElseThrow(
() ->
new InvalidInboundConnectorDefinitionException(
"Missing required property " + name));
}

private Optional<String> extractProperty(BaseElement element, String name) {
Expand Down

0 comments on commit 36fe4f8

Please sign in to comment.