use of eu.europa.ec.fisheries.schema.exchange.plugin.types.v1.PluginFault in project UVMS-ExchangeModule-APP by UnionVMS.
the class ExchangeEventIncomingServiceBean method firePluginFault.
private void firePluginFault(ExchangeMessageEvent messageEvent, String errorMessage, Throwable exception) {
log.error(errorMessage, exception);
PluginFault fault = ExchangePluginResponseMapper.mapToPluginFaultResponse(FaultCode.EXCHANGE_PLUGIN_EVENT.getCode(), errorMessage);
pluginErrorEvent.fire(new PluginMessageEvent(messageEvent.getJmsMessage(), null, fault));
}
Aggregations