Skip to content
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

Custom ValidationError to control formatting #17

Open
nl253 opened this issue Nov 26, 2019 · 1 comment
Open

Custom ValidationError to control formatting #17

nl253 opened this issue Nov 26, 2019 · 1 comment
Labels
enhancement Improvement to existing stuff

Comments

@nl253
Copy link
Owner

nl253 commented Nov 26, 2019

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 nl253 added the enhancement Improvement to existing stuff label Nov 26, 2019
@nl253
Copy link
Owner Author

nl253 commented Nov 26, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to existing stuff
Projects
None yet
Development

No branches or pull requests

1 participant