This PR refactors the ClassList._check_classes and ClassList._check_unique_name_fields routines to provide better error messages, specifically including the indices of the bad input in the input lists. This may help with mitigating the coercion issue identified in #79 alongside giving better information for bad input to routines that mutate ClassLists.
I'm open to input about the format of the error messages.
This PR refactors the
ClassList._check_classes
andClassList._check_unique_name_fields
routines to provide better error messages, specifically including the indices of the bad input in the input lists. This may help with mitigating the coercion issue identified in #79 alongside giving better information for bad input to routines that mutate ClassLists.I'm open to input about the format of the error messages.