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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: improve handshake error handling #24

Merged
merged 4 commits into from Mar 26, 2024

Conversation

jgiovaresco
Copy link
Contributor

@jgiovaresco jgiovaresco commented Mar 26, 2024

Description

When HelloReply's status is ERROR, throw an exception containing error detail that can be handled by the caller.

Additional context


Gravitee.io Automatic Deployment

馃殌 A prerelease version of this package has been published on Gravitee's private artifactory, you can:

  • use it directly by updating your project with version: 1.1.0-improve-handshake-error-handling-SNAPSHOT
  • download it from Artifactory here

@jgiovaresco jgiovaresco force-pushed the improve-handshake-error-handling branch 2 times, most recently from cb23a08 to 03088db Compare March 26, 2024 08:54
@jgiovaresco jgiovaresco marked this pull request as ready for review March 26, 2024 09:16
@jgiovaresco jgiovaresco requested a review from a team as a code owner March 26, 2024 09:16
@jgiovaresco jgiovaresco force-pushed the improve-handshake-error-handling branch from 03088db to d564e26 Compare March 26, 2024 09:44
When HelloReply's status is ERROR, throw an exception containing error
detail that can be handled by the caller.
When the handshake has failed, the targetId is not defined, and the
removal was throwing a NullPointerException.
This would prevent polluting the log. The caller would be able to create
its own log with the cause if wanted.
Controllers may not need adapters for Command/Reply. Using a default
implementation in the interface simplifies the DX by avoiding to
implement those methods.
@jgiovaresco jgiovaresco force-pushed the improve-handshake-error-handling branch from d564e26 to 1532880 Compare March 26, 2024 10:45
@jgiovaresco jgiovaresco merged commit 6b56b3a into main Mar 26, 2024
8 checks passed
@jgiovaresco jgiovaresco deleted the improve-handshake-error-handling branch March 26, 2024 10:50
@graviteeio
Copy link
Contributor

馃帀 This PR is included in version 1.1.0 馃帀

The release is available on:

Your semantic-release bot 馃摝馃殌

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

Successfully merging this pull request may close these issues.

None yet

3 participants