-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
None exception is raised when the point coordinates are invalid #49
Comments
I'm not sure. It might be related to the fact that Edit: I suppose checking the commits associated with it could provide some insight. |
@keithdoggett you're right about the commit checking part. I've already done it in some other places, and I think the only reason for this rescue is that at some point either Tee Parham or Daniel Azuma wanted to go I would roll back on letting the factory raise IMHO. @lucasgomide would you have time to do some commit history check on that one and ensure us it is ok ? 🙂 |
@BuonOmo I got your point. I've already checked the history commits before. Although I was not able to get the reason. The first commit has already the I believe that errors are different from exceptions. It is really weird return nil when the Thus, I agree with you about letting the factory raise. We could improve the errors from the factory even |
@keithdoggett should we wait for your mail to Daniel before acting here ? |
So when I wrote RGeo initially, I used the "return I would just have a couple of cautionary recommendations.
|
Thanks @dazuma !
Unfortunately nowadays it has already a bit of unconsistancy. Yet, you're right, we should only include that change in a new major for sure.
I'd vote for a opiniated breaking change since RGeo has already a lot of options. What do you think @keithdoggett ?
Of course that would be sensible. This means reverting a kind of error I introduced in a recent PR ( |
Thanks for the notes @dazuma @BuonOmo my initial thoughts align with yours that we should just make a breaking change, but I'd like to spend more time thinking about it. Once we're ready to discuss validation in general, we can plan out an exception hierarchy and then do a deep dive through the ecosystem and try to find existing inconsistencies. |
Hi, everyone!
Why there is a rescue exception when a request to generate a point fails? Should we raise an exception If the provided coordinates are not valid?
rgeo-geojson/lib/rgeo/geo_json/coder.rb
Line 198 in 7316c96
The text was updated successfully, but these errors were encountered: