class ErrorListener implements ApplicationListener<ErrorEvent> {

    @Override
    public void onApplicationEvent(ErrorEvent event) {
        errorMessageConsumer.consumeMessage(ErrorMessage.of(UUID.randomUUID().toString(), event.message));
    }

    public  ErrorListener(ErrorMessageConsumer errorMessageConsumer);

}