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

More specific exception #155

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

owenRiddy
Copy link

The Quickstart proved misleading (#154) and didn't adequately signal that the word resource meant a Java resource. It looks a lot like a file path.

This PR improves the exception thrown from NullPointerException to MissingResourceException and adds a hint to the error message with more context.

it assumes that people are more likely to run into this failure mode when they follow the Quickstart int he README.

Owen Riddy added 2 commits January 17, 2022 23:38
If someone attempts to follow the Quickstart guide without realising
that the HTML needs to be available as a resource the exception
thrown (NullPointerException) is misleading. It should be a
MissingResourceException.
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.

1 participant