Skip to content

Conversation

@Aparna-BS
Copy link

@Aparna-BS Aparna-BS commented Jan 12, 2021

Currently when a exception is raised, the error message does not specify which exact validation method failed.
This code change allows the user to add customized messages to the exceptions, which also include the method name where failure occurred.
is_valid variable is converted into a class called IsValid.

Also, user can choose to just raise warning instead of exception by setting the is_warning flag to True.

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

Successfully merging this pull request may close these issues.

1 participant