Class MessagingExceptionWrapper

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.messaging.MessagingException
org.springframework.integration.support.MessagingExceptionWrapper
All Implemented Interfaces:
Serializable

public class MessagingExceptionWrapper extends org.springframework.messaging.MessagingException
A wrapper exception for a MessagingException used to convey the cause and original message to a MessagePublishingErrorHandler. The original message is in this exception's failedMessage property.

Intended for internal framework use only. Error handlers will typically unwrap the cause while creating an error message.

Since:
5.0
See Also:
  • Constructor Details

    • MessagingExceptionWrapper

      public MessagingExceptionWrapper(org.springframework.messaging.Message<?> originalMessage, org.springframework.messaging.MessagingException cause)