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

[BT-5096] Refactor client exceptions. #136

Merged
merged 5 commits into from
Sep 11, 2024
Merged

Conversation

findgriffin
Copy link
Contributor

Description

This change adds three new exception types ClientRequestException, ClientResponseException, and CodecException and uses them throughout encoding and decoding.

Motivation and context

Allows the client and users to figure out what went wrong.

How was the change tested?

Lots of unit test changes, but I'm sure we could further increase coverage.

Screenshots (if appropriate):

Change types

    • Bug fix (non-breaking change that fixes an issue)
    • New feature (non-breaking change that adds functionality)
    • Breaking change (backwards-incompatible fix or feature)

Checklist:

    • My code follows the code style of this project.
    • My change requires a change to Fauna documentation.
    • My change requires a change to the README, and I have updated it accordingly.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@findgriffin findgriffin changed the base branch from main to BT-5084-streaming-edge-cases September 10, 2024 19:26
jdcryans
jdcryans previously approved these changes Sep 10, 2024
pnwpedro
pnwpedro previously approved these changes Sep 11, 2024
src/main/java/com/fauna/codec/UTF8FaunaParser.java Outdated Show resolved Hide resolved
Base automatically changed from BT-5084-streaming-edge-cases to main September 11, 2024 16:40
@findgriffin findgriffin dismissed stale reviews from pnwpedro and jdcryans September 11, 2024 16:40

The base branch was changed.

@findgriffin findgriffin merged commit f649d72 into main Sep 11, 2024
1 check passed
@findgriffin findgriffin deleted the codec-client-exceptions branch September 11, 2024 16:55
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.

3 participants