Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature!: throw exception if controller cannot be registered #641

Merged
merged 2 commits into from
Oct 29, 2021

Conversation

csviri
Copy link
Collaborator

@csviri csviri commented Oct 29, 2021

If a controller cannot be registered because of cofirguration loading is a programatic error, should be reported asap. Logging just a warning would make it hard to find out where is the problem and why the controller not starting

If a controller cannot be registered because of cofirguration loading is a programatic error, should be reported asap. Logging just a warning would make it hard to find out where is the problem and why the controller not starting
@csviri csviri requested a review from metacosm October 29, 2021 08:52
controller.getClass().getCanonicalName(),
ControllerUtils.getNameFor(controller),
configurationService.getKnownControllerNames());
throw new IllegalStateException(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't that be an OperatorException instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed.

@csviri csviri merged commit 1b11546 into v2 Oct 29, 2021
@csviri csviri deleted the throw-exception-no-config-on-reg branch October 29, 2021 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants