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

refactor: Throw more friendly exceptions when loading a configuration #1045

Merged
merged 4 commits into from
Jun 15, 2024

Conversation

theofidry
Copy link
Member

@theofidry theofidry commented Jun 15, 2024

Make the configuration and its factory throw more comprehensible exceptions. This also makes the switch from InvalidArgumentException to UnexpectedValueException which is more correct IMO as it is values provided by the user.

@theofidry theofidry enabled auto-merge (squash) June 15, 2024 11:05
@theofidry theofidry merged commit 36b530c into humbug:main Jun 15, 2024
126 checks passed
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.

1 participant