Search in sources :

Example 1 with PluginFault

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));
}
Also used : PluginFault(eu.europa.ec.fisheries.schema.exchange.plugin.types.v1.PluginFault) PluginMessageEvent(eu.europa.ec.fisheries.uvms.exchange.message.event.carrier.PluginMessageEvent)

Aggregations

PluginFault (eu.europa.ec.fisheries.schema.exchange.plugin.types.v1.PluginFault)1 PluginMessageEvent (eu.europa.ec.fisheries.uvms.exchange.message.event.carrier.PluginMessageEvent)1