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

Custom Error type #20

Closed
djetelina opened this issue Jul 14, 2017 · 3 comments
Closed

Custom Error type #20

djetelina opened this issue Jul 14, 2017 · 3 comments
Milestone

Comments

@djetelina
Copy link

Hi, I'd love to be able to catch typeguard validation errors explicitly, as I'm using it for validation of user's input and I'd love to be able to tell them when it's their fault and not try and tell them that my code's TypeError is their fault. I might be able to send a pull request for this, but wanted to run it by you first.

@agronholm
Copy link
Owner

It's been well over two years, but I am adding a validation mode that emit warnings instead. Would that work for you? If not, how would you want to configure this?

@djetelina
Copy link
Author

Hey, I'm not using typeguard anymore (switched companies) and I don't even really remember, so I can't say. Sorry!

@agronholm agronholm added this to the 3.0.0 milestone Nov 27, 2019
@agronholm
Copy link
Owner

As of v3.0, TypeCheckError is now raised instead of TypeError, so I consider this done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants