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

Throw an exception when trying an unsupported TLD #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tomsommer
Copy link

@tomsommer tomsommer commented Sep 13, 2018

Throw an exception when trying an unsupported TLD, instead of returning empty data.

@tomsommer tomsommer changed the title Throw an exception when trying an unsupported TLD, instead of returni… Throw an exception when trying an unsupported TLD Sep 13, 2018
@jsmitty12
Copy link
Owner

While I don't have a problem with this change (I quite like it, in fact), it is a backwards compatibility break and minimally needs to be documented with @throws. I think it also wise to start a running list of changes in the CHANGELOG.md file under a new 6.0.0-alpha1 heading and Backwards Compatibility Breaks sub-heading.

I would also like to see a test case verifying that the correct exception is thrown.

@jsmitty12 jsmitty12 added this to the Version 6 milestone May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants