Is there a way to programmatically check for the existence of a specific changeset error?
If I am adding an error to the changeset like this:
Ecto.Changeset.add_error( changeset, :age, "Must be more than 12" )
After I get the changeset back from Repo.insert how can I check that this specific error has been added? I want to add special handling for a specific error. I can use
Ecto.Changeset.traverse_errors but that would require looking for the string
"Must be more than 12" which seems brittle.