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 validation fails #2

Closed
madarco opened this issue Sep 27, 2020 · 4 comments
Closed

Throw an exception when validation fails #2

madarco opened this issue Sep 27, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@madarco
Copy link

madarco commented Sep 27, 2020

Similar to https://github.com/beberlei/assert

It would be useful to throw an exception instead of returning a bool.

This could be an extra wrapper around the main module (eg: oslllo-validator-exception)

@Ghustavh97
Copy link
Contributor

@madarco Sounds good, let me see what I can do.

@Ghustavh97 Ghustavh97 added the enhancement New feature or request label Sep 27, 2020
@Ghustavh97
Copy link
Contributor

@madarco here you go https://github.com/oslllo/validator-exception, tell me if its missing anything.

@madarco
Copy link
Author

madarco commented Sep 28, 2020

Thanks great thanks @Ghustavh97!

@Ghustavh97
Copy link
Contributor

@madarco no problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants