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

[#74] Remove raiseError accessor param. #75

Merged
merged 2 commits into from
Sep 3, 2019
Merged

[#74] Remove raiseError accessor param. #75

merged 2 commits into from
Sep 3, 2019

Conversation

todofixthis
Copy link
Contributor

@todofixthis todofixthis commented Sep 2, 2019

closes #74

If an accessor cannot process an input value, it should just throw an exception instead.

There is a trade-off to this approach, in that the stacktrace for the accessor-thrown error is not preserved (replaced by _raiseError()), but accessors tend to be fairly simple in implementation, so it shouldn' be too difficult to locate the source of an error.

If an accessor cannot process an input value, it should just throw an exception instead.

There is a trade-off to this approach, in that the stacktrace for the accessor-thrown error is not preserved (replaced by `_raiseError()`), but accessors tend to be fairly simple in implementation, so it shouldn' be too difficult to locate the source of an error.
@coveralls
Copy link

coveralls commented Sep 2, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 7914938 on todofixthis:74-accessor-catchers-mitt into 7c0eba5 on evanshortiss:master.

Copy link
Owner

@evanshortiss evanshortiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. Had just one question, but happy to merge regardless of the answer.

lib/variable.js Outdated Show resolved Hide resolved
@evanshortiss evanshortiss merged commit be95f31 into evanshortiss:master Sep 3, 2019
@todofixthis todofixthis deleted the 74-accessor-catchers-mitt branch September 3, 2019 21:00
@todofixthis todofixthis restored the 74-accessor-catchers-mitt branch September 9, 2019 21:26
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

Successfully merging this pull request may close these issues.

Remove raiseError accessor param
3 participants