nl253 / DataFrame

Dataframe & Series library for statistics and tabular data manipulation (like pandas)
MIT License
0 stars 1 forks source link

Custom ValidationError to control formatting #17

Open nl253 opened 4 years ago

nl253 commented 4 years ago

I would prefer to avoid having to do this and have the error constructor do it all:

throw new Error(msg('you need to provide pairs of colId, newName (e.g. df.rename(1, "Width", -2, "Length"))'))
nl253 commented 4 years ago

The error constructor might need to take as parameters the class name, method name etc.