RascalSoftware / python-RAT

Python interface for RAT
1 stars 5 forks source link

Improves error messages for ClassLists #80

Closed DrPaulSharp closed 1 month ago

DrPaulSharp commented 1 month ago

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.