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

More friendly utility methods for arrow::Status and arrow::Result #1457

Merged
merged 1 commit into from
Oct 15, 2021

Conversation

kosak
Copy link
Contributor

@kosak kosak commented Oct 15, 2021

  • Rename (statusOrDie, valueOrDie) to (okOrThrow, valueOrThrow)
  • Introduce a helper macro to help generate informative "message@file:line" messages.
  • Make informative messages optional.

* Rename (statusOrDie, valueOrDie) to (okOrThrow, valueOrThrow)
* Introduce a helper macro to help generate informative "message@file:line" messages.
* Make informative messages optional.
@kosak kosak requested a review from jcferretti October 15, 2021 03:50
@kosak kosak self-assigned this Oct 15, 2021
@kosak
Copy link
Contributor Author

kosak commented Oct 15, 2021

I was vacillating between two ways of doing this: the way presented here and another way which wrapped up (value, message, file, line) in a little helper object. This way is a tad simpler, and the other way is a tad more structured. We can discuss if you have an opinion.

@kosak kosak merged commit 3bb672c into deephaven:main Oct 15, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Oct 15, 2021
@kosak kosak deleted the kosak_status-helpers branch June 23, 2022 03:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants