-
Notifications
You must be signed in to change notification settings - Fork 201
Throw if no converter #216
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
Conversation
src/DotNetWorker/Context/Features/DefaultModelBindingFeature.cs
Outdated
Show resolved
Hide resolved
src/DotNetWorker/Context/Features/DefaultModelBindingFeature.cs
Outdated
Show resolved
Hide resolved
0cfd9c2 to
5ae84ea
Compare
src/DotNetWorker/Context/Features/DefaultModelBindingFeature.cs
Outdated
Show resolved
Hide resolved
source can be null
fba14c6 to
2f8c529
Compare
|
Increasing test coverage tracked here: #230 |
| internal class FunctionInputConverterException : FunctionWorkerException | ||
| { | ||
| internal FunctionInputConverterException(string message) : base(message) { } | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this have a property for the function name?
| /// <summary> | ||
| /// Internal exception that is surfaced to the user | ||
| /// </summary> | ||
| internal class FunctionWorkerException : Exception |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you defining this to serve as the base for worker exceptions?
Instead of keeping the input as null if we are unable to convert it, we should throw (or at least warn) why the input is null.
Example: