Skip to content

Commit

Permalink
code review
Browse files Browse the repository at this point in the history
  • Loading branch information
ununhexium committed Sep 4, 2024
1 parent 00c2a27 commit 98eb76c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package de.sovity.edc.extension.mdslogginhousebinder;

public class LoggingHouseException extends RuntimeException {
public LoggingHouseException(String message) {
super(message);
public LoggingHouseException(String message, Throwable cause) {
super(message, cause);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ private void sendMessage(String logEvent, ContractTerminationEvent contractTermi
monitor.debug("Published event for " + logEntry);
} catch (JsonProcessingException e) {
val message = "Failed to serialize the event for the LoggingHouse " + logEntry;
monitor.debug(message);
throw new LoggingHouseException(message);
throw new LoggingHouseException(message, e);
}
}

Expand Down

0 comments on commit 98eb76c

Please sign in to comment.