コード例 #1
0
 private void doInvokeSaga(EventProxy<?> event, Saga saga) {
   try {
     saga.handle(event);
   } catch (RuntimeException e) {
     if (suppressExceptions) {
       logger.error(
           format(
               "An exception occurred while a Saga [%s] was handling an Event [%s]:",
               saga.getClass().getSimpleName(), event.getPayloadType().getSimpleName()),
           e);
     } else {
       throw e;
     }
   }
 }