Skip to content

Fail with unwrapped exception when using CompletionStage #2054 #2205

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

Merged
merged 1 commit into from
Sep 7, 2018

Conversation

jlprat
Copy link
Contributor

@jlprat jlprat commented Sep 6, 2018

Refs: #2054
Unwraps the original exception that caused the CompletionStage to fail.
This original exception can then be used on the custom ExceptionHandler.

Please note that the unwrapping is only done for the methods that take a CompletionStage not for the ones getting a Scala Future.

Refs: akka#2054
Unwraps the original exception that caused the `CompletionStage` to fail.
This original exception can then be used on the custom `ExceptionHandler`.
@akka-ci akka-ci added validating PR that is currently being validated by Jenkins tested PR that was successfully built and tested by Jenkins and removed validating PR that is currently being validated by Jenkins labels Sep 6, 2018
@akka-ci
Copy link

akka-ci commented Sep 6, 2018

Test PASSed.

@jlprat
Copy link
Contributor Author

jlprat commented Sep 6, 2018

Travis failure is because 10.1.5 artifacts are not yet in Maven Central

Copy link
Contributor

@jrudolph jrudolph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

D.complete(value.asScala.fast.map(v ⇒ ToResponseMarshallable(v)(marshaller)).recover(unwrapCompletionException))
}

// TODO: This might need to be raised as an issue to scala-java8-compat instead.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 Can you file an issue there as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will check if it already exists, or will do otherwise

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @jlprat

@johanandren johanandren merged commit 8bd0bec into akka:master Sep 7, 2018
@jlprat jlprat deleted the unwrapExceptionsJava branch September 7, 2018 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tested PR that was successfully built and tested by Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants