Skip to content

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

Merged
theofidry merged 4 commits intohumbug:mainfrom
theofidry:refactor/config-error
Jun 15, 2024
Merged

refactor: Throw more friendly exceptions when loading a configuration#1045
theofidry merged 4 commits intohumbug:mainfrom
theofidry:refactor/config-error

Conversation

@theofidry
Copy link
Copy Markdown
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
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