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

Include error details in unchecked Java exception #768

Merged
merged 1 commit into from
Nov 4, 2024

Conversation

bestbeforetoday
Copy link
Member

The checked GatewayException already has its printStackTrace augmented with any associated gRPC ErrorDetail elements. The same functionality is added to the equivalent unchecked GatewayRuntimeException. The two exceptions are intended to behave identically, with the unchecked variant to be used only where a checked exception cannot be thrown due to the standard APIs exposed. For example, the Iterator methods used when retrieving events.

The checked GatewayException already has its printStackTrace augmented
with any associated gRPC ErrorDetail elements. The same functionality is
added to the equivalent unchecked GatewayRuntimeException. The two
exceptions are intended to behave identically, with the unchecked
variant to be used only where a checked exception cannot be thrown due
to the standard APIs exposed. For example, the Iterator methods used
when retrieving events.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
@bestbeforetoday bestbeforetoday marked this pull request as ready for review October 25, 2024 15:31
@bestbeforetoday bestbeforetoday requested a review from a team as a code owner October 25, 2024 15:31
@bestbeforetoday bestbeforetoday enabled auto-merge (squash) October 25, 2024 15:31
@bestbeforetoday bestbeforetoday merged commit 8993d6d into hyperledger:main Nov 4, 2024
37 checks passed
@bestbeforetoday bestbeforetoday deleted the java-stacktrace branch November 4, 2024 14:29
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.

2 participants