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

Investigave need for a DynamoDBQuery failure state #82

Open
nhyne opened this issue Jan 6, 2022 · 0 comments
Open

Investigave need for a DynamoDBQuery failure state #82

nhyne opened this issue Jan 6, 2022 · 0 comments

Comments

@nhyne
Copy link
Collaborator

nhyne commented Jan 6, 2022

There may be a need for an error channel in the DynamoDBQuery trait. In cases where users can pass invalid options it may be beneficial to provide them with an error and let them account for those cases. After a short discussion with John he suggested that it could be modeled after ZIO's die/dieMessage/failCause.

We would also be able to write helpers like DynamoDBQuery.when(f: A => Boolean) that would produce a failed DynamoDBQuery in the event that the passed function returned false.

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