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

538 propagate exceptions via either and add suppressed #737

Conversation

dsmf
Copy link
Contributor

@dsmf dsmf commented Jun 27, 2024

Description

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

dsmf added 4 commits May 16, 2024 14:00
…uppressed

# Conflicts:
#	irs-registry-client/src/test/java/org/eclipse/tractusx/irs/registryclient/central/CentralDigitalTwinRegistryServiceTest.java
@ds-jhartmann ds-jhartmann changed the base branch from main to fix/538-propagate-exceptions-via-Either-and-addSuppressed July 8, 2024 17:38
@@ -39,7 +40,7 @@ public interface DigitalTwinRegistryService {
* @param bpn the BPN to retrieve the shells for
* @return the collection of asset administration shells
*/
default Collection<Shell> lookupShellsByBPN(final String bpn) throws RegistryServiceException {
default Collection<Either<Exception, Shell>> lookupShellsByBPN(final String bpn) throws RegistryServiceException {
Copy link
Contributor

Choose a reason for hiding this comment

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

When changing this interface, we need to make sure to document how to use this.
This interface is used by trace-x

@ds-jhartmann ds-jhartmann marked this pull request as ready for review July 8, 2024 17:40
@ds-jhartmann ds-jhartmann merged commit 26eab7a into eclipse-tractusx:fix/538-propagate-exceptions-via-Either-and-addSuppressed Jul 8, 2024
14 of 15 checks passed
@dsmf dsmf deleted the 538-propagate-exceptions-via-Either-and-addSuppressed branch July 15, 2024 15:01
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