-
Notifications
You must be signed in to change notification settings - Fork 46
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
Homogenize exceptions in GeoJSON #132
Conversation
* JsonReaderException for errors relating structure * ParseException for invalid data/values refers to #92
@atlefren, I know this has not been addressed for a long time. Nonetheless is this what you were asking for? |
src/NetTopologySuite.IO.GeoJSON/Converters/GeometryConverter.cs
Outdated
Show resolved
Hide resolved
src/NetTopologySuite.IO.GeoJSON4STJ/Converters/StjFeatureConverter.cs
Outdated
Show resolved
Hide resolved
src/NetTopologySuite.IO.GeoJSON4STJ/Converters/StjFeatureConverter.cs
Outdated
Show resolved
Hide resolved
Revert changes to Stj class.
@airbreather, do you think we should adjust Exceptions in GeoJSON4STJ, too? |
@FObermaier Sweet! I had almost forgotten about this, but if I read this correctly I will now be able to scrap a lot of ugly code trying to deal with the case I described! Thank you! |
First, some background, looking at the exception types that we throw in GeoJSON4STJ:
I've looked through the 29 lines under
|
I made the previous comment very long because all of my GitHub notification e-mails have been getting sent to spam for several months now, so I'm extra slow to respond on top of my ordinary slowness, so I wanted to get all the information out there at once just in case I miss things for a really long time again. |
For the two that I suggested should be fixed, I have opened #134 to fix them by themselves. No need to hold this PR over it, I think this can be merged.
Repeated clicks of the "this is not spam" button have not resolved this, so I've found a way to add some manual filter to make sure that this stops happening. I should now be back to just my usual long periods of radio silence, instead of the more advanced silence I've been exhibiting over the past several months... |
@airbreather , I think the within the NewtonSoft.Json based project we should replace Should we release a v4 or will v3.1 do? |
Per SemVer, it should really be a v4. Callers that catch a certain type of exception today will need to change to catch a different type of exception in order to be correct. When in doubt, I check the rules on this page: if it's not a sort of change that the .NET development team could accept into the core libraries with their strict compatibility requirements, then it's a breaking change for us. This time, the "Exceptions" section confirms it. |
refers to #92