-
Notifications
You must be signed in to change notification settings - Fork 395
Remove CommandLineConfigurationException
#1909
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
Comments
I am not sure which exception we should use instead:
|
CommandLineConfigurationException is thrown for two possible errors:
Some candidates from .NET Standard 2.0:
InvalidOperationException seems best. |
I think that we went down this same path before giving up and deciding to use a custom exception type. |
Did Stream.ObjectInvariant() ever throw anything? |
If the method were instead called RequireValid then InvalidOperationException would feel less wrong. Another option is to return the error instead of throwing it. Unfortunately ValidationResult is not in .NET Standard 2.0 either. Is something like |
The text was updated successfully, but these errors were encountered: