Better enum deserialization exception fixes #1614 - #1619
Conversation
Return better error info for client/server enum mismatch.
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
|
@sicklittlemonkey The test |
|
I removed the trow and made it return the default value of a given type. It means that it won't throw the argument out of range exception, but it also won't fail with null reference exception. However, you'd not be aware that the enum doesn't contain the value it must have. I am not sure how it works with something like |
Avoid null exception, and return better error info for client/server enum mismatch.
Description
This simple suggestion fixes #1614.
Purpose
This pull request is a:
Checklist
(I had a quick look, but didn't see a similar test that I could re-use for this case.)