Skip to content
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

Fix exception message and type #779

Closed
karussell opened this issue Aug 24, 2016 · 0 comments
Closed

Fix exception message and type #779

karussell opened this issue Aug 24, 2016 · 0 comments
Milestone

Comments

@karussell
Copy link
Member

karussell commented Aug 24, 2016

When doing alternative routing and pass_through=true and exception is raised. We should use IllegalArgumentException instead of

java.lang.IllegalStateException: Alternative paths and a viaTurnPenalty at the same time is currently not supported
        at com.graphhopper.routing.template.AlternativeRoutingTemplate.calcPaths(AlternativeRoutingTemplate.java:52)

to avoid server error. Plus fix the actual text

@karussell karussell added this to the 0.8 milestone Aug 24, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant