-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Branched Exception Handling In Mutiny reactive #45469
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
Comments
/cc @cescoffier (mutiny), @jponge (mutiny) |
Can you please provide an explanation of what you think is wrong? |
.onFailure(ProvisionedThroughputExceededException.class).recoverWithUni(fail -> handleRetryableException(fail, "ProvisionedThroughputExceededException occurred during put item", entity))
.onFailure(RequestLimitExceededException.class).recoverWithUni(fail -> handleRetryableException(fail, "RequestLimitExceededException occurred during put item operation", entity))
.onFailure(InternalServerErrorException.class).recoverWithUni(fail -> handleRetryableException(fail, "InternalServerErrorException occurred during put item operation", entity))
.onFailure(ConditionalCheckFailedException.class).recoverWithUni(fail -> {
Log.errorf("ConditionalCheckFailedException occurred during put item operation: %s", fail.getMessage());
return Uni.createFrom().failure(new NonRetryableException(fail.getMessage(), fail));
})
.onFailure().recoverWithUni(fail -> handleRetryableException(fail, "GenericException occurred during put item operation", entity)); Given that failure of Ex:
|
@jponge can help on this. |
There is an open PR on Mutiny to add that feature. However, it's a breaking change, and it will have to wait a Mutiny 3.0. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
Note: Changing order of exception handling pipes doesn't take any effect
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
21
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)gradle
Additional information
No response
The text was updated successfully, but these errors were encountered: