Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #243 from Puneetha17/rethrowException
Browse files Browse the repository at this point in the history
Rethrow the Exception in SendHandler in after getting privacy group.
  • Loading branch information
ekellstrand authored Jun 17, 2019
2 parents 75bde25 + 363be7c commit d588a0a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.CompletableFuture;
import java.util.stream.Collectors;

Expand Down Expand Up @@ -129,6 +130,9 @@ public void handle(RoutingContext routingContext) {
.fail(new OrionException(OrionErrorCode.ENCLAVE_PRIVACY_GROUP_MISSING, "privacy group not found"));
return result;
}
}).exceptionally(e -> {
handleFailure(routingContext, e);
return Optional.empty();
});
}
}
Expand Down

0 comments on commit d588a0a

Please sign in to comment.