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:
java.io.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:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    MessagingExceptionWrapper​(org.springframework.messaging.Message<?> originalMessage, org.springframework.messaging.MessagingException cause)  
  • Method Summary

    Methods inherited from class org.springframework.messaging.MessagingException

    getFailedMessage, toString

    Methods inherited from class org.springframework.core.NestedRuntimeException

    contains, getMessage, getMostSpecificCause, getRootCause

    Methods inherited from class java.lang.Throwable

    addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MessagingExceptionWrapper

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