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

Option to add a class to assert_that error message #75

Open
bart1 opened this issue Jan 18, 2022 · 0 comments
Open

Option to add a class to assert_that error message #75

bart1 opened this issue Jan 18, 2022 · 0 comments

Comments

@bart1
Copy link

bart1 commented Jan 18, 2022

The rlang package makes it possible to add classes to the error conditions (e.g. rlang::abort). This is a convenient feature for later working with the error messages. There are for example good for programmatically responding to errors within packages. The current option is to parse the error messages but as these can be quite dynamic to make them informative to users it would be better to have error classes. An implementation would be quite simple as the class argument should be added to the assert_that function and the assertError function. If desirable I can make a pull request

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

No branches or pull requests

1 participant