diff --git a/api/src/main/java/ca/bc/gov/educ/penreg/api/service/SagaService.java b/api/src/main/java/ca/bc/gov/educ/penreg/api/service/SagaService.java index ef723c7b..f952da52 100644 --- a/api/src/main/java/ca/bc/gov/educ/penreg/api/service/SagaService.java +++ b/api/src/main/java/ca/bc/gov/educ/penreg/api/service/SagaService.java @@ -1,5 +1,6 @@ package ca.bc.gov.educ.penreg.api.service; +import ca.bc.gov.educ.penreg.api.exception.PenRegAPIRuntimeException; import ca.bc.gov.educ.penreg.api.model.v1.PenRequestBatchMultiplePen; import ca.bc.gov.educ.penreg.api.model.v1.Saga; import ca.bc.gov.educ.penreg.api.model.v1.SagaEvent; @@ -102,7 +103,7 @@ public void updateAttachedSagaWithEvents(final Saga saga, final SagaEvent sagaEv } } catch (Exception e) { log.error("updateAttachedSagaWithEvents failed for PenRequestBatchId :: {}, SagaId :: {}, SagaEventState :: {}, Error :: {}", saga.getPenRequestBatchID(), saga.getSagaId(), sagaEvent.getSagaEventState(), e.toString()); - throw new RuntimeException(e); + throw new PenRegAPIRuntimeException(e); } }