Throw exception on invalid function definition

Resolves #2022
This commit is contained in:
David Turanski
2020-09-27 12:14:37 -04:00
committed by Oleg Zhurakousky
parent a17ef6d09d
commit 2bc8404f22

View File

@@ -711,6 +711,10 @@ public class FunctionConfiguration {
functionBindableProxyDefinition.getConstructorArgumentValues().addGenericArgumentValue(this.streamFunctionProperties);
registry.registerBeanDefinition(functionDefinition + "_binding", functionBindableProxyDefinition);
}
else {
throw new IllegalArgumentException("The function definition '" + streamFunctionProperties.getDefinition() +
"' is not valid. The referenced function bean or one of its components does not exist");
}
}
}