@Override protected AttributeAccessor getErrorMessageAttributes(org.springframework.messaging.Message<?> message) { AttributeAccessor attributes = attributesHolder.get(); if (attributes == null) { return super.getErrorMessageAttributes(message); } else { return attributes; } }
/** * Build an error message for the exception and message using the configured * {@link ErrorMessageStrategy}. * @param message the message. * @param exception the exception. * @return the error message. * @since 4.3.10 */ protected final ErrorMessage buildErrorMessage(Message<?> message, RuntimeException exception) { return this.errorMessageStrategy.buildErrorMessage(exception, getErrorMessageAttributes(message)); }
@Override protected AttributeAccessor getErrorMessageAttributes(Message<?> message) { AttributeAccessor attributes = attributesHolder.get(); if (attributes == null) { return super.getErrorMessageAttributes(message); } else { return attributes; } }
@Override protected AttributeAccessor getErrorMessageAttributes(Message<?> message) { AttributeAccessor attributes = attributesHolder.get(); if (attributes == null) { return super.getErrorMessageAttributes(message); } else { return attributes; } }
@Override protected AttributeAccessor getErrorMessageAttributes(org.springframework.messaging.Message<?> message) { AttributeAccessor attributes = attributesHolder.get(); if (attributes == null) { return super.getErrorMessageAttributes(message); } else { return attributes; } }
@Override protected AttributeAccessor getErrorMessageAttributes(org.springframework.messaging.Message<?> message) { AttributeAccessor attributes = attributesHolder.get(); if (attributes == null) { return super.getErrorMessageAttributes(message); } else { return attributes; } }
@Override protected AttributeAccessor getErrorMessageAttributes(org.springframework.messaging.Message<?> message) { AttributeAccessor attributes = attributesHolder.get(); if (attributes == null) { return super.getErrorMessageAttributes(message); } else { return attributes; } }
/** * Build an error message for the exception and message using the configured * {@link ErrorMessageStrategy}. * @param message the message. * @param exception the exception. * @return the error message. * @since 4.3.10 */ protected final ErrorMessage buildErrorMessage(Message<?> message, RuntimeException exception) { return this.errorMessageStrategy.buildErrorMessage(exception, getErrorMessageAttributes(message)); }