Skip to content
Snippets Groups Projects
Commit fcc93182 authored by OZGCloud's avatar OZGCloud
Browse files

catch error on handling error

parent e3434a5e
Branches
Tags
No related merge requests found
......@@ -5,6 +5,7 @@ import java.util.Collections;
import java.util.function.Predicate;
import org.apache.commons.collections.MapUtils;
import org.apache.commons.lang3.exception.ExceptionUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.context.event.EventListener;
......@@ -88,8 +89,12 @@ class ProcessorEventListener {
}
private void handleError(Throwable cause, String vorgangId) {
try {
LOG.error("Error on procession Vorgang {} externally", vorgangId, cause);
resultService.processError(cause, vorgangId);
} catch (RuntimeException e) {
LOG.error("Error on processing error: " + ExceptionUtils.getRootCauseMessage(e), e);
}
}
void publishCommandProcessedEvent(Command command) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment