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

New error handling for browser #571

Merged
merged 5 commits into from
Jun 25, 2019
Merged

New error handling for browser #571

merged 5 commits into from
Jun 25, 2019

Conversation

talavis
Copy link
Contributor

@talavis talavis commented Jun 17, 2019

Describe the pull request:

  • Bug fix
  • Functional change
  • New feature
  • Code cleanup
  • Build system change
  • Documentation change
  • Language translation

Pull request long description:

Most error handling in the browser now uses three exceptions:

  • NotFoundError - no hits in db or similar
  • ParsingError - unable to parse request (e. g. bad region)
  • MalformedRequest - other error, currently only too large region

Also fixed a couple of problems that were noted during updates for the new exceptions.

Also a few changes visible in frontend:

  • All example queries are actually performed rather than just linked
  • Variant searches without a hit will not show the not found page instead of the variant page with an error for variant not found.

NotFoundError - no hits in db or similar
ParsingError - unable to parse request (e. g. bad region)
MalformedRequest - other error, currently only too large region
Perform a lookup of the variant to match other queries with no results found.
@talavis talavis marked this pull request as ready for review June 17, 2019 11:34
@viklund viklund merged commit f3ed868 into develop Jun 25, 2019
@viklund viklund deleted the feature/new-exceptions branch June 25, 2019 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants