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

A domain without any extension throws a fatal error #31

Open
IvoMiranda opened this issue Feb 21, 2015 · 4 comments
Open

A domain without any extension throws a fatal error #31

IvoMiranda opened this issue Feb 21, 2015 · 4 comments

Comments

@IvoMiranda
Copy link

Fatal error on line 27:
throw new \InvalidArgumentException("Invalid $domain syntax");

@akzhan
Copy link
Contributor

akzhan commented Mar 1, 2015

And what's wrong?

@IvoMiranda
Copy link
Author

There should be inbuilt validation not to throw fatal error. At least in my opinion of course.

@tomsommer
Copy link

This is correct behaviour.

@JayQ1982
Copy link

@IvoMiranda
Just but a try{ } catch{ } around the new Whois() and handle the exception as you want (i.e. display error message on screen).

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

No branches or pull requests

4 participants