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

Create errors when arguments have wrong types #2

Open
fjcmontenegro opened this issue Aug 24, 2018 · 0 comments
Open

Create errors when arguments have wrong types #2

fjcmontenegro opened this issue Aug 24, 2018 · 0 comments
Labels
bug Something isn't working

Comments

@fjcmontenegro
Copy link
Owner

Currently, if the user gives the methods an invalid type, the class handles it silently, but the user doesn't know what is happening. For instance, calling Point2D(2.0) would create the point (0,0) because the constructor would detect that no y was passed. This should launch an exception.

@fjcmontenegro fjcmontenegro added the enhancement New feature or request label Aug 24, 2018
@fjcmontenegro fjcmontenegro added bug Something isn't working and removed enhancement New feature or request labels Dec 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant