/** * Publish an error message for the supplied message and throwable. If the throwable * is already a {@link MessagingException} containing the message in its * {@code failedMessage} property, use {@link #publish(MessagingException)} instead. * @param failedMessage the message. * @param throwable the throwable. */ public void publish(Message<?> failedMessage, Throwable throwable) { publish(null, failedMessage, throwable); }
/** * Publish an error message for the supplied message and throwable. If the throwable * is already a {@link MessagingException} containing the message in its * {@code failedMessage} property, use {@link #publish(MessagingException)} instead. * @param inputMessage the message that started the subflow. * @param failedMessage the message. * @param throwable the throwable. */ public void publish(@Nullable Message<?> inputMessage, Message<?> failedMessage, Throwable throwable) { publish(throwable, ErrorMessageUtils.getAttributeAccessor(inputMessage, failedMessage)); }
/** * Publish an error message for the supplied exception. * @param exception the exception. */ public void publish(MessagingException exception) { publish(null, exception.getFailedMessage(), exception); }
/** * Publish an error message for the supplied exception. * @param inputMessage the message that started the subflow. * @param exception the exception. */ public void publish(Message<?> inputMessage, MessagingException exception) { publish(inputMessage, exception.getFailedMessage(), exception); }
/** * Publish an error message for the supplied message and throwable. If the throwable * is already a {@link MessagingException} containing the message in its * {@code failedMessage} property, use {@link #publish(MessagingException)} instead. * @param failedMessage the message. * @param throwable the throwable. */ public void publish(Message<?> failedMessage, Throwable throwable) { publish(null, failedMessage, throwable); }
/** * Publish an error message for the supplied exception. * @param inputMessage the message that started the subflow. * @param exception the exception. */ public void publish(Message<?> inputMessage, MessagingException exception) { publish(inputMessage, exception.getFailedMessage(), exception); }
/** * Publish an error message for the supplied exception. * @param exception the exception. */ public void publish(MessagingException exception) { publish(null, exception.getFailedMessage(), exception); }
/** * Publish an error message for the supplied message and throwable. If the throwable * is already a {@link MessagingException} containing the message in its * {@code failedMessage} property, use {@link #publish(MessagingException)} instead. * @param inputMessage the message that started the subflow. * @param failedMessage the message. * @param throwable the throwable. */ public void publish(@Nullable Message<?> inputMessage, Message<?> failedMessage, Throwable throwable) { publish(throwable, ErrorMessageUtils.getAttributeAccessor(inputMessage, failedMessage)); }