-
Notifications
You must be signed in to change notification settings - Fork 381
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
Use objects for validation errors #3875
Labels
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Feature description
(Copied from #3780 (comment))
We should use objects for the different validation errors (like you would use separate objects for exceptions as well).
Benefits:
AMP_Validation_Error
around.switch()
statements like the one below. Whatever needs to be checked across all validation errors will be encapsulated as a method on them.Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation brief
QA testing instructions
Demo
Changelog entry
The text was updated successfully, but these errors were encountered: